Skip to content

Commit f881fe1

Browse files
chore(deps): update dependency cypress to version 13.0.0 (#842)
1 parent 0201c8e commit f881fe1

File tree

3 files changed

+191
-76
lines changed

3 files changed

+191
-76
lines changed

examples/fundamentals__window-size/cypress/e2e/spec.cy.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
describe('window size', () => {
44
/**
55
* Collects window and iframe sizes in pixels and prints
6-
* them to the command log. Also sends the to the `setupNodeEvents`
6+
* them to the command log. Also sends them to the `setupNodeEvents`
77
* function via cy.task to be printed in the terminal
88
*/
99
const logSizes = () => {
@@ -14,14 +14,6 @@ describe('window size', () => {
1414
cy.log(`browser window is: **${windowWidth} x ${windowHeight}**`)
1515
cy.task('log', { message: 'browser window', o: { windowWidth, windowHeight } }, { log: false })
1616

17-
// part of the browser window is taken up the command log
18-
const commandLog = window.top.document.querySelector('.container')
19-
const commandLogWidth = commandLog.offsetWidth
20-
const commandLogHeight = commandLog.offsetHeight
21-
22-
cy.log(`command log is: **${commandLogWidth} x ${commandLogHeight}**`)
23-
cy.task('log', { message: 'command log', o: { commandLogWidth, commandLogHeight } }, { log: false })
24-
2517
// the app thinks it has the following dimensions
2618
cy.window({ log: false }).then((win) => {
2719
// the application is scaled to fit into its iframe

0 commit comments

Comments
 (0)