diff --git a/apps/e2e/cypress/e2e/xpress.cy.ts b/apps/e2e/cypress/e2e/xpress.cy.ts index 9846c9be6..c66c88fe1 100644 --- a/apps/e2e/cypress/e2e/xpress.cy.ts +++ b/apps/e2e/cypress/e2e/xpress.cy.ts @@ -453,6 +453,16 @@ context('Xpress tests', () => { ); cy.get('[data-cy="instrument-filter"]').click(); + + // Wait for instruments to load + cy.get('ul[role="listbox"]') + .should('be.visible') + .then(() => { + cy.get('ul[role="listbox"] li') + .filter('[data-value]:not([data-value="all"])') + .should('have.length.greaterThan', 0); + }); + cy.get('[role="listbox"]').contains(instrument2.name).click(); cy.finishedLoading(); @@ -646,6 +656,16 @@ context('Xpress tests', () => { cy.contains(proposal3.title); cy.get('[data-cy="instrument-filter"]').click(); + + // Wait for instruments to load + cy.get('ul[role="listbox"]') + .should('be.visible') + .then(() => { + cy.get('ul[role="listbox"] li') + .filter('[data-value]:not([data-value="all"])') + .should('have.length.greaterThan', 0); + }); + cy.get('[role="listbox"]').contains(instrument2.name).click(); cy.finishedLoading();