Skip to content

Commit 6531828

Browse files
authored
test: fix default size system test (#30759)
1 parent 4b942b5 commit 6531828

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

system-tests/projects/screen-size/cypress/e2e/default_size.cy.js

-9
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ describe('windowSize', () => {
22
it('spawns with correct default size', () => {
33
// assert the browser was spawned at 1280x720 and is full size
44
// normally e2e tests spawn at fixed size, but this spec should be spawned without passing any width/height arguments in plugins file.
5-
// TODO: look into fixing screen/available height and width
65
if (Cypress.browser.name === 'chrome') {
76
// NOTE: there is a bug in chrome headless=new where height is not spawned correctly
87
// the issue is marked as fixed, but others are still running into it in Chrome 116
@@ -14,14 +13,6 @@ describe('windowSize', () => {
1413
innerWidth: 1280,
1514
innerHeight: 581, // chrome 128 decreased the size here from 633 to 581
1615
})
17-
} else if (Cypress.browser.name === 'firefox') {
18-
expect({
19-
innerWidth: top.window.innerWidth,
20-
innerHeight: top.window.innerHeight,
21-
}).deep.eq({
22-
innerWidth: 1280,
23-
innerHeight: Cypress.env('CI') ? 676 : 677, // firefox 133 decreased the size here from 720 to 676/677
24-
})
2516
} else {
2617
expect({
2718
innerWidth: top.window.innerWidth,

0 commit comments

Comments
 (0)