From 20b31f47187f5b8a2b4b4fb89a0d63ebc682daa7 Mon Sep 17 00:00:00 2001 From: jamazi Date: Mon, 6 Nov 2023 11:53:18 +0000 Subject: [PATCH] Fix(test): trim whitespace before compare Signed-off-by: jamazi --- cypress/e2e/deckDashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/e2e/deckDashboard.js b/cypress/e2e/deckDashboard.js index f48f289da..aedccc2a2 100644 --- a/cypress/e2e/deckDashboard.js +++ b/cypress/e2e/deckDashboard.js @@ -14,7 +14,7 @@ describe('Deck dashboard', function() { it('Can show the right title on the dashboard', function() { cy.get('.board-title h2') .should('have.length', 1).first() - .should('have.text', 'Upcoming cards') + .should($el => expect($el.text().trim()).to.equal('Upcoming cards')) }) it('Can see the default "Personal Board" created for user by default', function() {