Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test(cypress): Set caret-color to transparent before screenhots
Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Nov 30, 2023
commit b6762f5d55eada61097697f6c0eb9cadc30e21e6
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