Skip to content

Commit

Permalink
Merge pull request #11424 from kodadot/ci--adjust-collection-test
Browse files Browse the repository at this point in the history
ci: adjust collection test
  • Loading branch information
preschian authored Feb 19, 2025
2 parents c19f74b + be23c90 commit 207ccf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e/collection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 207ccf0

Please sign in to comment.