2020-05-21 06:45:49 +03:00
|
|
|
describe('Remove Liquidity', () => {
|
2020-07-20 14:48:42 +03:00
|
|
|
it('eth remove', () => {
|
2023-03-03 22:20:41 +03:00
|
|
|
cy.visit('/remove/v2/ETH/0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984')
|
2020-05-27 20:13:31 +03:00
|
|
|
cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'ETH')
|
2023-03-03 22:20:41 +03:00
|
|
|
cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'UNI')
|
2020-05-21 06:45:49 +03:00
|
|
|
})
|
|
|
|
|
2020-07-20 14:48:42 +03:00
|
|
|
it('eth remove swap order', () => {
|
2023-03-03 22:20:41 +03:00
|
|
|
cy.visit('/remove/v2/0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984/ETH')
|
|
|
|
cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'UNI')
|
2020-07-20 14:48:42 +03:00
|
|
|
cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'ETH')
|
|
|
|
})
|
|
|
|
|
|
|
|
it('loads the two correct tokens', () => {
|
2023-03-03 22:20:41 +03:00
|
|
|
cy.visit('/remove/v2/0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6/0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984')
|
2020-07-20 14:48:42 +03:00
|
|
|
cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'WETH')
|
2023-03-03 22:20:41 +03:00
|
|
|
cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'UNI')
|
2020-07-20 14:48:42 +03:00
|
|
|
})
|
|
|
|
|
2020-05-21 06:45:49 +03:00
|
|
|
it('does not crash if ETH is duplicated', () => {
|
2023-03-03 22:20:41 +03:00
|
|
|
cy.visit('/remove/v2/0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6/0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6')
|
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
|
|
|
})
|
|
|
|
})
|