Skip to content

Commit

Permalink
tests: avoid Cypress test being flaky
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Dec 7, 2022
1 parent 7fa7049 commit 708fafa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/cypress/e2e/example23.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe('Example 23 - Range Filters', { retries: 1 }, () => {
.children('.slick-cell:nth(2):visible')
.each(($cell) => {
const value = parseInt($cell.text().trim(), 10);
if (!isNaN(value)) {
if (!isNaN(value) && value !== '') {
expect(value >= (newLowest - allowedBuffer)).to.eq(true);
expect(value <= (newHighest + allowedBuffer)).to.eq(true);
}
Expand Down

0 comments on commit 708fafa

Please sign in to comment.