Skip to content

Commit

Permalink
fix: intermittent xpress e2e failures (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonfernandes authored Oct 18, 2024
1 parent a0bf244 commit 0fd4735
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions apps/e2e/cypress/e2e/xpress.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit 0fd4735

Please sign in to comment.