Add enabled/disabled tests

This commit is contained in:
Josh Johnson 2018-10-11 19:58:06 +01:00
parent 447f53a078
commit e53ebdda42

View file

@ -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', () => {});