Skip to content

Commit

Permalink
chore: fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 committed Oct 9, 2023
1 parent f3cd5eb commit e9def70
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/cowswap-frontend-e2e/src/e2e/lists.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('Lists', () => {

it('change list', () => {
cy.get('#output-currency-input .open-currency-select-button').click()
cy.get('.list-token-manage-button').click()
cy.get('#list-token-manage-button').click()
cy.get('#tokens-lists-table > div').should('have.length.greaterThan', 1)
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function ManageLists(props: ManageListsProps) {
/>
</styledEl.ImportListsContainer>
)}
<styledEl.ListsContainer>
<styledEl.ListsContainer id="tokens-lists-table">
{lists
.sort((a, b) => (a.priority || 0) - (b.priority || 0))
.map((list) => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export function SelectTokenModal(props: SelectTokenModalProps) {
)}
<styledEl.Separator />
<div>
<styledEl.ActionButton onClick={onOpenManageWidget}>
<styledEl.ActionButton id="list-token-manage-button" onClick={onOpenManageWidget}>
<Edit /> <span>Manage Token Lists</span>
</styledEl.ActionButton>
</div>
Expand Down

0 comments on commit e9def70

Please sign in to comment.