Skip to content

Commit

Permalink
Fix tests for added character count display
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
  • Loading branch information
susnux committed Oct 4, 2022
1 parent 7b670e1 commit fb1e678
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cypress/e2e/MenuBar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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')
})
})

Expand All @@ -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')
})
})

Expand All @@ -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')
})
})
})
Expand Down

0 comments on commit fb1e678

Please sign in to comment.