From 708fafaea1bbae1ee050188eb1da1299e0c11e3f Mon Sep 17 00:00:00 2001 From: Ghislain B Date: Wed, 7 Dec 2022 14:16:25 -0500 Subject: [PATCH] tests: avoid Cypress test being flaky --- test/cypress/e2e/example23.cy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/cypress/e2e/example23.cy.js b/test/cypress/e2e/example23.cy.js index 8384b6cc..d1f7a1d6 100644 --- a/test/cypress/e2e/example23.cy.js +++ b/test/cypress/e2e/example23.cy.js @@ -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); }