Skip to content

Commit

Permalink
chore(deps): update dependency cypress to version 13.0.0 (#842)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbreiding authored Aug 30, 2023
1 parent 0201c8e commit f881fe1
Show file tree
Hide file tree
Showing 3 changed files with 191 additions and 76 deletions.
10 changes: 1 addition & 9 deletions examples/fundamentals__window-size/cypress/e2e/spec.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe('window size', () => {
/**
* Collects window and iframe sizes in pixels and prints
* them to the command log. Also sends the to the `setupNodeEvents`
* them to the command log. Also sends them to the `setupNodeEvents`
* function via cy.task to be printed in the terminal
*/
const logSizes = () => {
Expand All @@ -14,14 +14,6 @@ describe('window size', () => {
cy.log(`browser window is: **${windowWidth} x ${windowHeight}**`)
cy.task('log', { message: 'browser window', o: { windowWidth, windowHeight } }, { log: false })

// part of the browser window is taken up the command log
const commandLog = window.top.document.querySelector('.container')
const commandLogWidth = commandLog.offsetWidth
const commandLogHeight = commandLog.offsetHeight

cy.log(`command log is: **${commandLogWidth} x ${commandLogHeight}**`)
cy.task('log', { message: 'command log', o: { commandLogWidth, commandLogHeight } }, { log: false })

// the app thinks it has the following dimensions
cy.window({ log: false }).then((win) => {
// the application is scaled to fit into its iframe
Expand Down
Loading

0 comments on commit f881fe1

Please sign in to comment.