2020-05-21 06:45:49 +03:00
|
|
|
describe('Remove Liquidity', () => {
|
2020-07-20 14:48:42 +03:00
|
|
|
it('eth remove', () => {
|
2021-04-09 21:01:56 +03:00
|
|
|
cy.visit('/remove/v2/ETH/0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85')
|
2020-05-27 20:13:31 +03:00
|
|
|
cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'ETH')
|
|
|
|
cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'MKR')
|
2020-05-21 06:45:49 +03:00
|
|
|
})
|
|
|
|
|
2020-07-20 14:48:42 +03:00
|
|
|
it('eth remove swap order', () => {
|
2021-04-09 21:01:56 +03:00
|
|
|
cy.visit('/remove/v2/0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85/ETH')
|
2020-07-20 14:48:42 +03:00
|
|
|
cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'MKR')
|
|
|
|
cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'ETH')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('loads the two correct tokens', () => {
|
2021-04-23 01:10:18 +03:00
|
|
|
cy.visit('/remove/v2/0xc778417E063141139Fce010982780140Aa0cD5Ab/0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85')
|
2020-07-20 14:48:42 +03:00
|
|
|
cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'WETH')
|
|
|
|
cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'MKR')
|
|
|
|
})
|
|
|
|
|
2020-05-21 06:45:49 +03:00
|
|
|
it('does not crash if ETH is duplicated', () => {
|
2021-04-23 01:10:18 +03:00
|
|
|
cy.visit('/remove/v2/0xc778417E063141139Fce010982780140Aa0cD5Ab/0xc778417E063141139Fce010982780140Aa0cD5Ab')
|
2020-07-20 14:48:42 +03:00
|
|
|
cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'WETH')
|
|
|
|
cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'WETH')
|
2020-05-21 06:45:49 +03:00
|
|
|
})
|
|
|
|
|
2022-10-06 23:16:58 +03:00
|
|
|
it.skip('token not in storage is loaded', () => {
|
2021-04-23 01:10:18 +03:00
|
|
|
cy.visit('/remove/v2/0xb290b2f9f8f108d03ff2af3ac5c8de6de31cdf6d/0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85')
|
2020-05-27 20:13:31 +03:00
|
|
|
cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'SKL')
|
|
|
|
cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'MKR')
|
2020-05-21 06:45:49 +03:00
|
|
|
})
|
|
|
|
})
|