mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-01 21:42:46 +02:00
Remove unnecessary test
This commit is contained in:
parent
8d1aa239ac
commit
0010afa109
|
@ -246,27 +246,6 @@ describe('Choices - select one', () => {
|
|||
.should('not.be.visible');
|
||||
});
|
||||
});
|
||||
|
||||
describe('attempting to select choice', () => {
|
||||
let selectedChoice;
|
||||
|
||||
it('does not select choice', () => {
|
||||
cy.get('[data-test-hook=add-items-disabled]')
|
||||
.find('.choices__list--dropdown .choices__item')
|
||||
.last()
|
||||
.then($lastChoice => {
|
||||
selectedChoice = $lastChoice;
|
||||
})
|
||||
.click();
|
||||
|
||||
cy.get('[data-test-hook=add-items-disabled]')
|
||||
.find('.choices__list--single .choices__item')
|
||||
.last()
|
||||
.should($item => {
|
||||
expect($item.text()).to.not.contain(selectedChoice.text());
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('disabled via attribute', () => {
|
||||
|
@ -289,27 +268,6 @@ describe('Choices - select one', () => {
|
|||
.should('be.visible');
|
||||
});
|
||||
});
|
||||
|
||||
describe('attempting to select choice', () => {
|
||||
let selectedChoice;
|
||||
|
||||
it('does not select choice', () => {
|
||||
cy.get('[data-test-hook=disabled-via-attr]')
|
||||
.find('.choices__list--dropdown .choices__item')
|
||||
.last()
|
||||
.then($lastChoice => {
|
||||
selectedChoice = $lastChoice;
|
||||
})
|
||||
.click();
|
||||
|
||||
cy.get('[data-test-hook=disabled-via-attr]')
|
||||
.find('.choices__list--single .choices__item')
|
||||
.last()
|
||||
.should($item => {
|
||||
expect($item.text()).to.not.contain(selectedChoice.text());
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('prepend/append', () => {
|
||||
|
|
Loading…
Reference in a new issue