diff --git a/cypress/integration/select-multiple.spec.js b/cypress/integration/select-multiple.spec.js index 5cf1f89..2ecd10a 100644 --- a/cypress/integration/select-multiple.spec.js +++ b/cypress/integration/select-multiple.spec.js @@ -293,6 +293,7 @@ describe('Choices - select multiple', () => { describe('on click', () => { it('does not open choice dropdown', () => { + cy.wait(500); // allow for animation frame cy.get('[data-test-hook=add-items-disabled]') .find('.choices__list--dropdown') .should('not.be.visible'); diff --git a/cypress/integration/select-one.spec.js b/cypress/integration/select-one.spec.js index 0d6829b..ff09061 100644 --- a/cypress/integration/select-one.spec.js +++ b/cypress/integration/select-one.spec.js @@ -241,6 +241,7 @@ describe('Choices - select one', () => { describe('on click', () => { it('does not open choice dropdown', () => { + cy.wait(500); // allow for animation frame cy.get('[data-test-hook=add-items-disabled]') .find('.choices__list--dropdown') .should('not.be.visible'); @@ -263,6 +264,7 @@ describe('Choices - select one', () => { describe('on click', () => { it('does not open choice dropdown', () => { + cy.wait(500); // allow for animation frame cy.get('[data-test-hook=disabled-via-attr]') .find('.choices__list--dropdown') .should('not.be.visible');