Commit a726f674 authored by Nate Wienert's avatar Nate Wienert Committed by GitHub

fix: bring back flake retries for flaky test (only flakes ~33% of time) (#7063)

parent c9b4016b
...@@ -34,20 +34,31 @@ describe('Universal search bar', () => { ...@@ -34,20 +34,31 @@ describe('Universal search bar', () => {
.should('exist') .should('exist')
}) })
it('should go to the selected result when recent results are shown', () => { it(
// Seed recent results with UNI. 'should go to the selected result when recent results are shown',
openSearch() // this test is experiencing flake despite being correct, i can see the right value in DOM
getSearchBar().type('uni') // but for some reason cypress doesn't find it, so adding retries for now :/
cy.get(getTestSelector('searchbar-token-row-UNI')) {
getSearchBar().clear().type('{esc}') retries: {
runMode: 3,
openMode: 3,
},
},
() => {
// Seed recent results with UNI.
openSearch()
getSearchBar().type('uni')
cy.get(getTestSelector('searchbar-token-row-UNI'))
getSearchBar().clear().type('{esc}')
// Search a different token by name. // Search a different token by name.
openSearch() openSearch()
getSearchBar().type('eth') getSearchBar().type('eth')
cy.get(getTestSelector('searchbar-token-row-ETH')) cy.get(getTestSelector('searchbar-token-row-ETH'))
// Validate that we go to the searched/selected result. // Validate that we go to the searched/selected result.
getSearchBar().type('{enter}') getSearchBar().type('{enter}')
cy.url().should('contain', 'tokens/ethereum/NATIVE') cy.url().should('contain', 'tokens/ethereum/NATIVE')
}) }
)
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment