Skip to content

Commit 207ccf0

Browse files
authored
Merge pull request #11424 from kodadot/ci--adjust-collection-test
ci: adjust collection test
2 parents c19f74b + be23c90 commit 207ccf0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e/collection.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test('Collection interactions', async ({ page, Commands }) => {
2828
await page.getByTestId('filter-checkbox-buynow').nth(1).click()
2929
await Commands.scrollDownAndStop()
3030
for (const el of await page
31-
.locator('[class="infinite-scroll-item"]')
31+
.locator('.infinite-scroll-item .nft-name')
3232
.all()) {
3333
await expect(el).toContainText('DOT')
3434
}
@@ -78,7 +78,7 @@ test('Collection interactions', async ({ page, Commands }) => {
7878
await expect(
7979
page.locator('[class="infinite-scroll-item"]').first(),
8080
).toBeVisible()
81-
await expect(page.getByTestId('nft-name')).toHaveText(COLLECTION_SEARCH_RESULT)
81+
await expect(page.locator(`[title="${COLLECTION_SEARCH_RESULT}"]`)).toHaveText(COLLECTION_SEARCH_RESULT)
8282
})
8383

8484
// art view

0 commit comments

Comments
 (0)