fix: flaky test covering searchbar (#7002)
fix flaky test covering searchbar
This commit is contained in:
parent
ccc94fdfc2
commit
8592a4a54d
@ -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"]')
|
||||
|
Loading…
Reference in New Issue
Block a user