Add attribution for Cypress window size hack

This commit is contained in:
Emi Matchu 2021-05-04 13:49:53 -07:00
parent 8e18262db0
commit 19c3b50c97

View file

@ -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;