Skip to content

Commit

Permalink
test(cypress): Set caret-color to transparent before screenhots
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas <jonas@freesources.org>
  • Loading branch information
mejo- committed Nov 30, 2023
1 parent eaaaa6c commit b07b556
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cypress/e2e/print.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ describe('Open print.md and compare print view', function() {

cy.getEditor().should('be.visible')
cy.getContent()
// Ensure cursor is not displayed to prevent flaky tests (flashing input cursor)
.invoke('css', 'caret-color', 'transparent')
.get('h1:not(.hidden-visually)').should('contain', 'Print test')
.should('be.visible')

Expand All @@ -56,6 +58,8 @@ describe('Open print.md and compare print view', function() {
.then(() => {
cy.getEditor().should('be.visible')
cy.getContent()
// Ensure cursor is not displayed to prevent flaky tests (flashing input cursor)
.invoke('css', 'caret-color', 'transparent')
.get('h1:not(.hidden-visually)').should('contain', 'Print test')
.should('be.visible')

Expand Down

0 comments on commit b07b556

Please sign in to comment.