From 83cb750b2f2487ebf2f924c95f901e825c94a86d Mon Sep 17 00:00:00 2001 From: Jack Short Date: Mon, 31 Jul 2023 14:06:45 -0400 Subject: [PATCH] fix: failing nft buy test (#7049) --- cypress/e2e/nfts.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cypress/e2e/nfts.test.ts b/cypress/e2e/nfts.test.ts index 5bd06a27e3..bd4562ed1c 100644 --- a/cypress/e2e/nfts.test.ts +++ b/cypress/e2e/nfts.test.ts @@ -1,7 +1,6 @@ import { getTestSelector } from '../utils' const PUDGY_COLLECTION_ADDRESS = '0xbd3531da5cf5857e7cfaa92426877b022e612cf8' -const BONSAI_COLLECTION_ADDRESS = '0xec9c519d49856fd2f8133a0741b4dbe002ce211b' describe('Testing nfts', () => { it('should load nft leaderboard', () => { @@ -38,7 +37,10 @@ describe('Testing nfts', () => { }) it('should toggle buy now on details page', () => { - cy.visit(`#/nfts/asset/${BONSAI_COLLECTION_ADDRESS}/7580`) + cy.visit(`/#/nfts/collection/${PUDGY_COLLECTION_ADDRESS}`) + cy.get(getTestSelector('nft-filter')).first().click() + cy.get(getTestSelector('nft-collection-filter-buy-now')).click() + cy.get(getTestSelector('nft-collection-asset')).first().click() cy.get(getTestSelector('nft-details-description-text')).should('exist') cy.get(getTestSelector('nft-details-description')).click() cy.get(getTestSelector('nft-details-description-text')).should('not.exist')