mirror of
https://github.com/Choices-js/Choices.git
synced 2024-06-02 14:02:17 +02:00
Add enabled/disabled tests
This commit is contained in:
parent
447f53a078
commit
e53ebdda42
|
@ -6,6 +6,7 @@ describe('Choices', () => {
|
|||
describe('text element', () => {
|
||||
const textInput = 'testing';
|
||||
|
||||
describe('choices enabled', () => {
|
||||
describe('adding choices', () => {
|
||||
it('allows me to input choices', () => {
|
||||
cy.get('.choices')
|
||||
|
@ -152,6 +153,16 @@ describe('Choices', () => {
|
|||
});
|
||||
});
|
||||
|
||||
describe('choices disabled', () => {
|
||||
it('does not allow me to input data', () => {
|
||||
cy.get('.choices')
|
||||
.eq(3)
|
||||
.find('.choices__input--cloned')
|
||||
.should('be.disabled');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('select-one element', () => {});
|
||||
|
||||
describe('select-multiple element', () => {});
|
||||
|
|
Loading…
Reference in a new issue