test(trading): added waiting for market (#2927)
This commit is contained in:
parent
a7a6a820c0
commit
8c79a94a8c
@ -23,6 +23,7 @@ describe('Desktop view', { tags: '@smoke' }, () => {
|
|||||||
cy.wrap(element)
|
cy.wrap(element)
|
||||||
.get('span.absolute.md\\:h-1.w-full')
|
.get('span.absolute.md\\:h-1.w-full')
|
||||||
.should('exist');
|
.should('exist');
|
||||||
|
cy.contains('No market').should('not.exist');
|
||||||
cy.location('hash').should('equal', hashes[index]);
|
cy.location('hash').should('equal', hashes[index]);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -68,6 +69,7 @@ describe('Mobile view', { tags: '@smoke' }, () => {
|
|||||||
cy.getByTestId('button-menu-drawer').click();
|
cy.getByTestId('button-menu-drawer').click();
|
||||||
cy.getByTestId('menu-drawer').within((el) => {
|
cy.getByTestId('menu-drawer').within((el) => {
|
||||||
cy.wrap(el).getByTestId('Trading').click();
|
cy.wrap(el).getByTestId('Trading').click();
|
||||||
|
cy.contains('No market').should('not.exist');
|
||||||
cy.location('hash').should('equal', '#/markets/market-1');
|
cy.location('hash').should('equal', '#/markets/market-1');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user