uniswap-interface-uncensored/cypress/e2e/pool.test.ts

26 lines
621 B
TypeScript
Raw Normal View History

import { getTestSelector } from '../utils'
2020-05-11 16:03:44 +03:00
describe('Pool', () => {
beforeEach(() => {
cy.visit('/pool').then(() => {
cy.wait('@eth_blockNumber')
})
})
it('add liquidity links to /add/ETH', () => {
cy.get('body')
.then((body) => {
if (body.find(getTestSelector('FiatOnrampAnnouncement-close')).length > 0) {
cy.get(getTestSelector('FiatOnrampAnnouncement-close')).click()
}
})
.then(() => {
cy.get('#join-pool-button')
.click()
.then(() => {
cy.url().should('contain', '/add/ETH')
})
})
2020-05-11 16:03:44 +03:00
})
})