Add attribution for Cypress window size hack
This commit is contained in:
parent
8e18262db0
commit
19c3b50c97
1 changed files with 2 additions and 0 deletions
|
@ -16,6 +16,8 @@ module.exports = (on, config) => {
|
||||||
// Our screenshots from `cypress-plugin-snapshots` are affected by the actual
|
// Our screenshots from `cypress-plugin-snapshots` are affected by the actual
|
||||||
// window size, not just the viewport size! To avoid downscaling outfit
|
// window size, not just the viewport size! To avoid downscaling outfit
|
||||||
// previews, try to open the window at 1000x800 at minimum.
|
// previews, try to open the window at 1000x800 at minimum.
|
||||||
|
//
|
||||||
|
// Adapted from https://github.com/meinaart/cypress-plugin-snapshots/issues/104#issuecomment-636463370
|
||||||
function ensureWindowSize(on) {
|
function ensureWindowSize(on) {
|
||||||
const w = 1000;
|
const w = 1000;
|
||||||
const h = 800;
|
const h = 800;
|
||||||
|
|
Loading…
Reference in a new issue