mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-07 16:32:32 +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')
|
.find('.choices')
|
||||||
.click()
|
.click()
|
||||||
.find('.choices__list--dropdown')
|
.find('.choices__list--dropdown')
|
||||||
.should('not.be.visible');
|
.should('not.have.class', 'is-active');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -309,7 +309,7 @@ describe('Choices - select multiple', () => {
|
||||||
.find('.choices')
|
.find('.choices')
|
||||||
.click()
|
.click()
|
||||||
.find('.choices__list--dropdown')
|
.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', () => {
|
it('does not open choice dropdown', () => {
|
||||||
cy.get('[data-test-hook=add-items-disabled]')
|
cy.get('[data-test-hook=add-items-disabled]')
|
||||||
.find('.choices')
|
.find('.choices')
|
||||||
.click()
|
.click();
|
||||||
|
|
||||||
|
cy.get('[data-test-hook=add-items-disabled]')
|
||||||
.find('.choices__list--dropdown')
|
.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', () => {
|
it('does not open choice dropdown', () => {
|
||||||
cy.get('[data-test-hook=disabled-via-attr]')
|
cy.get('[data-test-hook=disabled-via-attr]')
|
||||||
.find('.choices')
|
.find('.choices')
|
||||||
.click()
|
.click();
|
||||||
|
|
||||||
|
cy.get('[data-test-hook=disabled-via-attr]')
|
||||||
.find('.choices__list--dropdown')
|
.find('.choices__list--dropdown')
|
||||||
.should('not.be.visible');
|
.should('not.have.class', 'is-active');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue