From d79ce01586607e9256c616d7b469aa42b9a7d6f7 Mon Sep 17 00:00:00 2001 From: wenpeng Date: Wed, 23 Oct 2024 15:19:54 +0800 Subject: [PATCH] test --- tests/hlk/demo.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hlk/demo.spec.js b/tests/hlk/demo.spec.js index 6b6d6a2..840599f 100644 --- a/tests/hlk/demo.spec.js +++ b/tests/hlk/demo.spec.js @@ -45,7 +45,7 @@ for (let i = 0; i < 10; i++) { 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').first().click(); + await h5Page.locator('.p-item').nth(1).click(); await h5Page.waitForLoadState(); await h5Page.getByText('立即购买').click(); await h5Page