mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-15 12:16:11 +02:00
Add further test delays
This commit is contained in:
parent
8d11eae895
commit
bd674b5bdf
|
@ -293,6 +293,7 @@ describe('Choices - select multiple', () => {
|
||||||
|
|
||||||
describe('on click', () => {
|
describe('on click', () => {
|
||||||
it('does not open choice dropdown', () => {
|
it('does not open choice dropdown', () => {
|
||||||
|
cy.wait(500); // allow for animation frame
|
||||||
cy.get('[data-test-hook=add-items-disabled]')
|
cy.get('[data-test-hook=add-items-disabled]')
|
||||||
.find('.choices__list--dropdown')
|
.find('.choices__list--dropdown')
|
||||||
.should('not.be.visible');
|
.should('not.be.visible');
|
||||||
|
|
|
@ -241,6 +241,7 @@ describe('Choices - select one', () => {
|
||||||
|
|
||||||
describe('on click', () => {
|
describe('on click', () => {
|
||||||
it('does not open choice dropdown', () => {
|
it('does not open choice dropdown', () => {
|
||||||
|
cy.wait(500); // allow for animation frame
|
||||||
cy.get('[data-test-hook=add-items-disabled]')
|
cy.get('[data-test-hook=add-items-disabled]')
|
||||||
.find('.choices__list--dropdown')
|
.find('.choices__list--dropdown')
|
||||||
.should('not.be.visible');
|
.should('not.be.visible');
|
||||||
|
@ -263,6 +264,7 @@ describe('Choices - select one', () => {
|
||||||
|
|
||||||
describe('on click', () => {
|
describe('on click', () => {
|
||||||
it('does not open choice dropdown', () => {
|
it('does not open choice dropdown', () => {
|
||||||
|
cy.wait(500); // allow for animation frame
|
||||||
cy.get('[data-test-hook=disabled-via-attr]')
|
cy.get('[data-test-hook=disabled-via-attr]')
|
||||||
.find('.choices__list--dropdown')
|
.find('.choices__list--dropdown')
|
||||||
.should('not.be.visible');
|
.should('not.be.visible');
|
||||||
|
|
Loading…
Reference in a new issue