Commit 83cb750b authored by Jack Short's avatar Jack Short Committed by GitHub

fix: failing nft buy test (#7049)

parent fc0bf229
import { getTestSelector } from '../utils' import { getTestSelector } from '../utils'
const PUDGY_COLLECTION_ADDRESS = '0xbd3531da5cf5857e7cfaa92426877b022e612cf8' const PUDGY_COLLECTION_ADDRESS = '0xbd3531da5cf5857e7cfaa92426877b022e612cf8'
const BONSAI_COLLECTION_ADDRESS = '0xec9c519d49856fd2f8133a0741b4dbe002ce211b'
describe('Testing nfts', () => { describe('Testing nfts', () => {
it('should load nft leaderboard', () => { it('should load nft leaderboard', () => {
...@@ -38,7 +37,10 @@ describe('Testing nfts', () => { ...@@ -38,7 +37,10 @@ describe('Testing nfts', () => {
}) })
it('should toggle buy now on details page', () => { 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-text')).should('exist')
cy.get(getTestSelector('nft-details-description')).click() cy.get(getTestSelector('nft-details-description')).click()
cy.get(getTestSelector('nft-details-description-text')).should('not.exist') cy.get(getTestSelector('nft-details-description-text')).should('not.exist')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment