-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/audit-and-update-readmes
- Loading branch information
Showing
16 changed files
with
148 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
packages/server/test/support/fixtures/projects/screen-size/cypress/integration/720p.spec.js
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
...erver/test/support/fixtures/projects/screen-size/cypress/integration/default_size.spec.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
describe('windowSize', () => { | ||
it('spawns with correct default size', () => { | ||
// assert the browser was spawned at 1920x1080 and is full size | ||
// normally e2e tests spawn at fixed size, but this spec should be spawned without passing any width/height arguments in plugins file. | ||
// TODO: look into fixing screen/available height and width | ||
expect({ | ||
innerWidth: top.window.innerWidth, | ||
innerHeight: top.window.innerHeight, | ||
// screenWidth: top.screen.width, | ||
// screenHeight: top.screen.height, | ||
// availWidth: top.screen.availWidth, | ||
// availHeight: top.screen.availHeight, | ||
}).deep.eq({ | ||
innerWidth: 1920, | ||
innerHeight: 1080, | ||
// screenWidth: 1920, | ||
// screenHeight: 1080, | ||
// availWidth: 1920, | ||
// availHeight: 1080, | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
module.exports = { | ||
useFixedFirefoxResolution (browser, options, config) { | ||
if (browser.family === 'firefox' && !config.env['NO_RESIZE']) { | ||
useFixedBrowserLaunchSize (browser, options, config) { | ||
if (config.env['NO_RESIZE']) return | ||
|
||
if (browser.family === 'firefox') { | ||
// this is needed to ensure correct error screenshot / video recording | ||
// resolution of exactly 1280x720 (height must account for firefox url bar) | ||
options.args = options.args.concat( | ||
['-width', '1280', '-height', '794'], | ||
// resolution of exactly 1280x720 | ||
// (height must account for firefox url bar, which we can only shrink to 1px) | ||
options.args.push( | ||
'-width', '1280', '-height', '721', | ||
) | ||
} else if (browser.name === 'electron') { | ||
options.preferences.width = 1280 | ||
options.preferences.height = 720 | ||
} else if (browser.family === 'chromium') { | ||
options.args.push('--window-size=1280,720') | ||
} | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.