uniswap-interface-uncensored/cypress/integration/lists.test.ts
Moody Salem 03913d9c0b
UNI
2020-09-24 11:29:31 -05:00

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')
})
})