mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-02 22:03:11 +02:00
Test for class instead of visibility
This commit is contained in:
parent
d657b17568
commit
2292b5282f
|
@ -291,7 +291,7 @@ describe('Choices - select multiple', () => {
|
|||
.find('.choices')
|
||||
.click()
|
||||
.find('.choices__list--dropdown')
|
||||
.should('not.be.visible');
|
||||
.should('not.have.class', 'is-active');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -309,7 +309,7 @@ describe('Choices - select multiple', () => {
|
|||
.find('.choices')
|
||||
.click()
|
||||
.find('.choices__list--dropdown')
|
||||
.should('not.be.visible');
|
||||
.should('not.have.class', 'is-active');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
@ -237,9 +237,11 @@ describe('Choices - select one', () => {
|
|||
it('does not open choice dropdown', () => {
|
||||
cy.get('[data-test-hook=add-items-disabled]')
|
||||
.find('.choices')
|
||||
.click()
|
||||
.click();
|
||||
|
||||
cy.get('[data-test-hook=add-items-disabled]')
|
||||
.find('.choices__list--dropdown')
|
||||
.should('not.be.visible');
|
||||
.should('not.have.class', 'is-active');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -255,9 +257,11 @@ describe('Choices - select one', () => {
|
|||
it('does not open choice dropdown', () => {
|
||||
cy.get('[data-test-hook=disabled-via-attr]')
|
||||
.find('.choices')
|
||||
.click()
|
||||
.click();
|
||||
|
||||
cy.get('[data-test-hook=disabled-via-attr]')
|
||||
.find('.choices__list--dropdown')
|
||||
.should('not.be.visible');
|
||||
.should('not.have.class', 'is-active');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue