|
1 | 1 | describe('Remove Liquidity', () => { |
2 | 2 | it('redirects', () => { |
3 | | - cy.visit('/remove/0xc778417E063141139Fce010982780140Aa0cD5Ab-0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85') |
| 3 | + cy.visit( |
| 4 | + '/remove/0xc778417E063141139Fce010982780140Aa0cD5Ab-0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85', |
| 5 | + ); |
4 | 6 | cy.url().should( |
5 | 7 | 'contain', |
6 | | - '/remove/0xc778417E063141139Fce010982780140Aa0cD5Ab/0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85' |
7 | | - ) |
8 | | - }) |
| 8 | + '/remove/0xc778417E063141139Fce010982780140Aa0cD5Ab/0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85', |
| 9 | + ); |
| 10 | + }); |
9 | 11 |
|
10 | 12 | it('eth remove', () => { |
11 | | - cy.visit('/remove/ETH/0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85') |
12 | | - cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'ETH') |
13 | | - cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'MKR') |
14 | | - }) |
| 13 | + cy.visit('/remove/ETH/0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85'); |
| 14 | + cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'ETH'); |
| 15 | + cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'MKR'); |
| 16 | + }); |
15 | 17 |
|
16 | 18 | it('eth remove swap order', () => { |
17 | | - cy.visit('/remove/0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85/ETH') |
18 | | - cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'MKR') |
19 | | - cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'ETH') |
20 | | - }) |
| 19 | + cy.visit('/remove/0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85/ETH'); |
| 20 | + cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'MKR'); |
| 21 | + cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'ETH'); |
| 22 | + }); |
21 | 23 |
|
22 | 24 | it('loads the two correct tokens', () => { |
23 | | - cy.visit('/remove/0xc778417E063141139Fce010982780140Aa0cD5Ab-0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85') |
24 | | - cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'WETH') |
25 | | - cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'MKR') |
26 | | - }) |
| 25 | + cy.visit( |
| 26 | + '/remove/0xc778417E063141139Fce010982780140Aa0cD5Ab-0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85', |
| 27 | + ); |
| 28 | + cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'WETH'); |
| 29 | + cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'MKR'); |
| 30 | + }); |
27 | 31 |
|
28 | 32 | it('does not crash if ETH is duplicated', () => { |
29 | | - cy.visit('/remove/0xc778417E063141139Fce010982780140Aa0cD5Ab-0xc778417E063141139Fce010982780140Aa0cD5Ab') |
30 | | - cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'WETH') |
31 | | - cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'WETH') |
32 | | - }) |
| 33 | + cy.visit( |
| 34 | + '/remove/0xc778417E063141139Fce010982780140Aa0cD5Ab-0xc778417E063141139Fce010982780140Aa0cD5Ab', |
| 35 | + ); |
| 36 | + cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'WETH'); |
| 37 | + cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'WETH'); |
| 38 | + }); |
33 | 39 |
|
34 | 40 | it('token not in storage is loaded', () => { |
35 | | - cy.visit('/remove/0xb290b2f9f8f108d03ff2af3ac5c8de6de31cdf6d-0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85') |
36 | | - cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'SKL') |
37 | | - cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'MKR') |
38 | | - }) |
39 | | -}) |
| 41 | + cy.visit( |
| 42 | + '/remove/0xb290b2f9f8f108d03ff2af3ac5c8de6de31cdf6d-0xF9bA5210F91D0474bd1e1DcDAeC4C58E359AaD85', |
| 43 | + ); |
| 44 | + cy.get('#remove-liquidity-tokena-symbol').should('contain.text', 'SKL'); |
| 45 | + cy.get('#remove-liquidity-tokenb-symbol').should('contain.text', 'MKR'); |
| 46 | + }); |
| 47 | +}); |
0 commit comments