fix: cypress flaky token details test (#7193)

improve cypress test
This commit is contained in:
Nate Wienert 2023-08-21 08:46:08 -10:00 committed by GitHub
parent 6ec9bb7362
commit 3dab1da5ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,6 +11,10 @@ describe('Token explore filter', () => {
function searchFor(filter: string) {
cy.get('[data-cy="explore-tokens-search-input"]').clear().type(filter).type('{enter}')
// wait for it to finish the filtered render
cy.get('[data-cy="token-name"]').first().contains(filter, {
matchCase: false,
})
}
it('should filter correctly by dao search term', () => {