init
This commit is contained in:
parent
7e443e7e76
commit
3fc0df1a94
@ -6,7 +6,7 @@
|
||||
"hlk_codegen": "npx playwright codegen https://hlk.meiguanjia.net/#/",
|
||||
"mgj_codegen": "npx playwright codegen https://vip1.meiguanjia.net/shair/?v=mgj",
|
||||
"zhb_codegen": "npx playwright codegen https://shengyibao.meiguanjia.net/young/",
|
||||
"zhb_csv-100": "npx playwright test ./tests/zhb/csv-demo.spec.js:13 --repeat-each=100",
|
||||
"zhb_csv-50": "npx playwright test ./tests/zhb/csv-demo.spec.js:13 --repeat-each=50",
|
||||
"ui": "npx playwright test --ui",
|
||||
"pwi": "npm ci && npx playwright install",
|
||||
"pwu": "npx playwright install --with-deps"
|
||||
|
||||
@ -44,6 +44,10 @@ for (let i = 0; i < 3; i++) {
|
||||
await h5Page.locator('.back').click();
|
||||
await h5Page.locator('.bar_item', { hasText: '商城' }).click();
|
||||
await expect(h5Page.locator('.title', { hasText: '商城' })).toBeVisible();
|
||||
await h5Page.waitForTimeout(2000);
|
||||
await h5Page.reload();
|
||||
await h5Page.locator('.bar_item', { hasText: '商城' }).click();
|
||||
await expect(h5Page.locator('.title', { hasText: '商城' })).toBeVisible();
|
||||
await h5Page.locator('.li span', { hasText: '全部' }).click();
|
||||
await h5Page.locator('.p-item').nth(2).click();
|
||||
await h5Page.waitForLoadState();
|
||||
|
||||
Reference in New Issue
Block a user