From fb1e678792a576fd4706ac9ee30ce4c224a5023e Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 4 Oct 2022 13:51:36 +0200 Subject: [PATCH] Fix tests for added character count display Signed-off-by: Ferdinand Thiessen --- cypress/e2e/MenuBar.spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/e2e/MenuBar.spec.js b/cypress/e2e/MenuBar.spec.js index 73ccea95964..99d9092014b 100644 --- a/cypress/e2e/MenuBar.spec.js +++ b/cypress/e2e/MenuBar.spec.js @@ -23,7 +23,7 @@ describe('Test the rich text editor menu bar', function() { * */ function getWordCount() { - return cy.get('.popover .open').get('[data-text-action-entry="word-count"]') + return cy.get('.popover .open').get('[data-text-action-entry="character-count"]') } beforeEach(cy.clearContent) @@ -33,7 +33,7 @@ describe('Test the rich text editor menu bar', function() { cy.getActionEntry('remain') .click() getWordCount() - .should('include.text', '0 words') + .should('include.text', '0 words, 0 chars') }) }) @@ -45,7 +45,7 @@ describe('Test the rich text editor menu bar', function() { cy.getActionEntry('remain') .click() getWordCount() - .should('include.text', '1 word') + .should('include.text', '1 word, 5 chars') }) }) @@ -57,7 +57,7 @@ describe('Test the rich text editor menu bar', function() { cy.getActionEntry('remain') .click() getWordCount() - .should('include.text', '2 word') + .should('include.text', '2 word, 10 chars') }) }) })