Skip to content

Commit

Permalink
chore: add some delays for fat cypress
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-lebleu committed Mar 30, 2024
1 parent 34f1b6c commit 76ace3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cypress/e2e/kompleter.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ describe("Kompletr.js", function() {

it ("should return n results with a value length >= 2", function() {
cy.get('#auto-complete').click().type('Ter').then(() => {
cy.get('.item--row').its('length').should('be.gte', 0);
cy.wait(1000);
cy.get('.item--row').its('length').should('be.gt', 0);
});
});

Expand Down Expand Up @@ -70,6 +71,7 @@ describe("Kompletr.js", function() {
.type('Te');
cy.get('body')
.click('topRight');
cy.wait(1000);
cy.get('#kompletr-results').should('not.visible');
});
});
Expand Down

0 comments on commit 76ace3d

Please sign in to comment.