From 3dab1da5ea9c0b2a9ac5a358cf5ffb8bdb8305c8 Mon Sep 17 00:00:00 2001 From: Nate Wienert Date: Mon, 21 Aug 2023 08:46:08 -1000 Subject: [PATCH] fix: cypress flaky token details test (#7193) improve cypress test --- cypress/e2e/token-explore-filter.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cypress/e2e/token-explore-filter.test.ts b/cypress/e2e/token-explore-filter.test.ts index 2d9c535b91..42178ea43d 100644 --- a/cypress/e2e/token-explore-filter.test.ts +++ b/cypress/e2e/token-explore-filter.test.ts @@ -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', () => {