This commit is contained in:
LingandRX 2024-11-01 18:27:15 +08:00
parent 7e443e7e76
commit 3fc0df1a94
2 changed files with 5 additions and 1 deletions

View File

@ -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"

View File

@ -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();