Skip to content

Commit

Permalink
test: fix intermittently broken tests
Browse files Browse the repository at this point in the history
The tests now wait for the expected list to populate
  • Loading branch information
tillywoodfield committed Nov 12, 2024
1 parent ee19d37 commit 33924c0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cypress/integration/advanced.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,9 @@ describe('The advanced search', { testIsolation: false }, () => {
cy.clock(now);
cy.get('[data-cy="add-rule"]').click();
cy.contains('Select field').click();
cy.get('[data-cy="field-selector"]')
.contains('List is empty.')
.should('not.be.visible');
cy.get('[data-cy="field-selector"] input').type(
'Geospatial search{enter}',
);
Expand All @@ -378,6 +381,9 @@ describe('The advanced search', { testIsolation: false }, () => {
cy.clock(now);
cy.get('[data-cy="add-rule"]').click();
cy.contains('Select field').click();
cy.get('[data-cy="field-selector"]')
.contains('List is empty.')
.should('not.be.visible');
cy.get('[data-cy="field-selector"] input').type(
'Sector Code{enter}',
);
Expand Down

0 comments on commit 33924c0

Please sign in to comment.