Skip to content

Commit

Permalink
Test 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jul 23, 2020
1 parent 70cc87b commit 5ea2436
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test-projects/basic/cypress/integration/columns_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,17 @@ describe('Columns', () => {
cy.visit(url);
cy.get('#ks-column-button').click({ force: true });

const openColumnControlsIfClosed = () => {
cy.get('body')
.not.find('#ks-column-select')
.then(() => {
cy.get('#ks-column-button').click({ force: true });
});
};

enable.forEach(name => {
openColumnControlsIfClosed();

cy.get('#ks-column-select')
.find('input[id^="react-select-"]')
.clear({ force: true })
Expand All @@ -31,9 +41,9 @@ describe('Columns', () => {
cy.get('#ks-list-table').should('contain', name);
});

cy.get('#ks-column-button').click({ force: true });

disable.forEach(name => {
openColumnControlsIfClosed();

cy.get('#ks-column-select')
.find('input[id^="react-select-"]')
.clear({ force: true })
Expand Down

0 comments on commit 5ea2436

Please sign in to comment.