chore: fix market-selector tests
This commit is contained in:
parent
84d1511972
commit
ab5c0feb39
@ -67,7 +67,7 @@ describe('market selector', () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
it.only('typing should change list', () => {
|
it('typing should change list', () => {
|
||||||
if (markets?.length) {
|
if (markets?.length) {
|
||||||
cy.visit(`/trading/${markets[0].id}`);
|
cy.visit(`/trading/${markets[0].id}`);
|
||||||
connectVegaWallet();
|
connectVegaWallet();
|
||||||
@ -124,7 +124,7 @@ describe('market selector', () => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
it('mobile view', () => {
|
it.only('mobile view', () => {
|
||||||
if (markets?.length) {
|
if (markets?.length) {
|
||||||
cy.viewport('iphone-xr');
|
cy.viewport('iphone-xr');
|
||||||
cy.visit(`/trading/${markets[0].id}`);
|
cy.visit(`/trading/${markets[0].id}`);
|
||||||
@ -136,7 +136,7 @@ describe('market selector', () => {
|
|||||||
cy.getByTestId('market-pane')
|
cy.getByTestId('market-pane')
|
||||||
.children()
|
.children()
|
||||||
.find('[role="button"]')
|
.find('[role="button"]')
|
||||||
.should('have.length', 3);
|
.should('have.length', 9);
|
||||||
cy.get('div[role="dialog"]').should('have.class', 'w-screen');
|
cy.get('div[role="dialog"]').should('have.class', 'w-screen');
|
||||||
cy.getByTestId('dialog-close').click();
|
cy.getByTestId('dialog-close').click();
|
||||||
cy.get('input[placeholder="Search"]').should(
|
cy.get('input[placeholder="Search"]').should(
|
||||||
|
Loading…
Reference in New Issue
Block a user