Skip to content

Commit

Permalink
a bit of gold plating
Browse files Browse the repository at this point in the history
  • Loading branch information
mrm007 committed Feb 29, 2024
1 parent a6ce975 commit a3ca889
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cypress/e2e/entry.cy.js
Expand Up @@ -8,11 +8,9 @@ import {
const getFirstFrame = () =>
getPreviewFrames()
.first()
.then(
($iframe) =>
new Cypress.Promise((resolve) =>
$iframe.on('load', () => resolve($iframe))
)
.then(cy.wrap)
.should(
($frame) => expect($frame.get(0).contentDocument.body).to.not.be.empty
);

const assertGlobalCounter = (subject = cy.window()) =>
Expand Down

0 comments on commit a3ca889

Please sign in to comment.