Fix(test): trim whitespace before compare

Signed-off-by: jamazi <jamazi@tutanota.com>
This commit is contained in:
jamazi
2023-11-06 14:53:56 +03:00
parent 2a4b3e709c
commit 20b31f4718
+1 -1
View File
@@ -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() {