21 lines
785 B
TypeScript
21 lines
785 B
TypeScript
describe('Lists', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/swap')
|
|
})
|
|
|
|
it('defaults to uniswap list', () => {
|
|
cy.get('#swap-currency-output .open-currency-select-button').click()
|
|
cy.get('#currency-search-selected-list-name').should('contain', 'Uniswap')
|
|
})
|
|
|
|
it('change list', () => {
|
|
cy.get('#swap-currency-output .open-currency-select-button').click()
|
|
cy.get('#currency-search-change-list-button').click()
|
|
cy.get('#list-row-tokens-1inch-eth .select-button').click()
|
|
cy.get('#currency-search-selected-list-name').should('contain', '1inch')
|
|
cy.get('#currency-search-change-list-button').click()
|
|
cy.get('#list-row-tokens-uniswap-eth .select-button').click()
|
|
cy.get('#currency-search-selected-list-name').should('contain', 'Uniswap')
|
|
})
|
|
})
|