diff --git a/cypress/e2e/token-details.test.ts b/cypress/e2e/token-details.test.ts index a1c7e85e51..95477ef7af 100644 --- a/cypress/e2e/token-details.test.ts +++ b/cypress/e2e/token-details.test.ts @@ -48,8 +48,8 @@ describe('Token details', () => { }) it('token with warning and low trading volume should have all information populated', () => { - // Shiba predator token, low trading volume and also has warning modal - cy.visit('/tokens/ethereum/0xa71d0588EAf47f12B13cF8eC750430d21DF04974') + // Null token created for this test, 0 trading volume and has warning modal + cy.visit('/tokens/ethereum/0x1eFBB78C8b917f67986BcE54cE575069c0143681') // Should have missing price chart when price unavailable (expected for this token) if (cy.get('[data-cy="chart-header"]').contains('Price unavailable')) { @@ -61,22 +61,20 @@ describe('Token details', () => { // About section should have description of token cy.get(getTestSelector('token-details-about-section')).should('exist') - cy.contains('QOM is the Shiba Predator').should('exist') + cy.contains('No token information available').should('exist') - // Links section should link out to Etherscan, More analytics, Website, Twitter + // Links section should link out to Etherscan, More analytics cy.get('[data-cy="resources-container"]').within(() => { cy.contains('Etherscan') .should('have.attr', 'href') - .and('include', 'etherscan.io/address/0xa71d0588EAf47f12B13cF8eC750430d21DF04974') + .and('include', 'etherscan.io/address/0x1eFBB78C8b917f67986BcE54cE575069c0143681') cy.contains('More analytics') .should('have.attr', 'href') - .and('include', 'info.uniswap.org/#/tokens/0xa71d0588EAf47f12B13cF8eC750430d21DF04974') - cy.contains('Website').should('have.attr', 'href').and('include', 'qom') - cy.contains('Twitter').should('have.attr', 'href').and('include', 'twitter.com/ShibaPredator1') + .and('include', 'info.uniswap.org/#/tokens/0x1eFBB78C8b917f67986BcE54cE575069c0143681') }) // Contract address should be displayed - cy.contains('0xa71d0588EAf47f12B13cF8eC750430d21DF04974').should('exist') + cy.contains('0x1eFBB78C8b917f67986BcE54cE575069c0143681').should('exist') // Warning label should show if relevant ([spec](https://www.notion.so/3f7fce6f93694be08a94a6984d50298e)) cy.get('[data-cy="token-safety-message"]')