Commit 8592a4a5 authored by Nate Wienert's avatar Nate Wienert Committed by GitHub

fix: flaky test covering searchbar (#7002)

fix flaky test covering searchbar
parent ccc94fdf
......@@ -25,7 +25,17 @@ describe('Universal search bar', () => {
cy.location('hash').should('equal', '#/tokens/ethereum/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984')
})
it('should go to the selected result when recent results are shown', () => {
it(
'should go to the selected result when recent results are shown',
// this test is experiencing flake despite being correct, i can see the right value in DOM
// but for some reason cypress doesn't find it, so adding retries for now :/
{
retries: {
runMode: 3,
openMode: 3,
},
},
() => {
// Search for uni token by name.
getSearchBar().type('uni')
cy.get('[data-cy="searchbar-token-row-UNI"]')
......@@ -49,7 +59,8 @@ describe('Universal search bar', () => {
// Validate we went to ethereum address
cy.url().should('contain', 'tokens/ethereum/NATIVE')
})
}
)
it.skip('should show recent tokens and popular tokens with empty search term', () => {
cy.get('[data-cy="magnifying-icon"]')
......
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