Skip to content

Commit

Permalink
fix(test): fix a Cypress flaky test that was sometime failing
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghislain Beaulac authored and Ghislain Beaulac committed Aug 26, 2019
1 parent d648b80 commit 4ed5a29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/cypress/integration/example9.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ describe('Example 9 - Grid Menu', () => {
.each(($child, index) => expect($child.text()).to.eq(fullEnglishTitles[index]));

cy.get('#grid9')
.get('.slick-gridmenu:visible')
.get('.slick-gridmenu')
.find('span.close')
.trigger('click', { force: true })
.click();
.click({ force: true });
});
});

Expand Down Expand Up @@ -232,10 +232,10 @@ describe('Example 9 - Grid Menu', () => {
.each(($child, index) => expect($child.text()).to.eq(fullFrenchTitles[index]));

cy.get('#grid9')
.get('.slick-gridmenu:visible')
.get('.slick-gridmenu')
.find('span.close')
.trigger('click')
.click();
.trigger('click', { force: true })
.click({ force: true });
});
});
});

0 comments on commit 4ed5a29

Please sign in to comment.