fix: use in house token for low volume test (#7414)

* fix: use discontinued project for low volume test

* use token I created

* update comment

* no info available

* remove socials

* update comment

* checksummed address
This commit is contained in:
Charles Bachmeier 2023-10-04 18:18:57 -07:00 committed by GitHub
parent b9db195017
commit 9db5fd104a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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