From 18d6a5e229d6f48553ab20b6b41897f21fc61fed Mon Sep 17 00:00:00 2001 From: Preschian Febryantara Date: Wed, 19 Feb 2025 11:15:07 +0700 Subject: [PATCH] ci: adjust collection test --- tests/e2e/collection.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/e2e/collection.spec.ts b/tests/e2e/collection.spec.ts index 401867b1b7..e4e691ef0e 100644 --- a/tests/e2e/collection.spec.ts +++ b/tests/e2e/collection.spec.ts @@ -28,7 +28,7 @@ test('Collection interactions', async ({ page, Commands }) => { await page.getByTestId('filter-checkbox-buynow').nth(1).click() await Commands.scrollDownAndStop() for (const el of await page - .locator('[class="infinite-scroll-item"]') + .locator('.infinite-scroll-item .nft-name') .all()) { await expect(el).toContainText('DOT') } @@ -78,7 +78,7 @@ test('Collection interactions', async ({ page, Commands }) => { await expect( page.locator('[class="infinite-scroll-item"]').first(), ).toBeVisible() - await expect(page.getByTestId('nft-name')).toHaveText(COLLECTION_SEARCH_RESULT) + await expect(page.locator(`[title="${COLLECTION_SEARCH_RESULT}"]`)).toHaveText(COLLECTION_SEARCH_RESULT) }) // art view