2023-01-05 19:05:05 +03:00
|
|
|
import { getTestSelector } from '../utils'
|
|
|
|
|
2020-05-11 16:03:44 +03:00
|
|
|
describe('Pool', () => {
|
2023-02-16 00:55:35 +03:00
|
|
|
beforeEach(() => {
|
|
|
|
cy.visit('/pool').then(() => {
|
|
|
|
cy.wait('@eth_blockNumber')
|
|
|
|
})
|
|
|
|
})
|
2022-06-14 00:43:58 +03:00
|
|
|
|
2022-12-20 23:36:57 +03:00
|
|
|
it('add liquidity links to /add/ETH', () => {
|
2023-02-16 00:55:35 +03:00
|
|
|
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
|
|
|
})
|
|
|
|
})
|