Watts-Lab / surveys

Library of surveys for deliberation experiments
MIT License
3 stars 4 forks source link

fix a window size for cypress tests of survey components #145

Closed JamesPHoughton closed 11 months ago

JamesPHoughton commented 1 year ago

Currently window sizes are not fixed, leading to screenshots having small diffs each time they are re-rendered. If we fix a specific screen size (probably a default, and then modify it for each test?) then we might have fewer diffs

JamesPHoughton commented 1 year ago

Here's the cypress command to set the viewport size: https://docs.cypress.io/api/commands/viewport I'll let you figure out what the right size should be.

JamesPHoughton commented 11 months ago

closed in https://github.com/Watts-Lab/surveys/pull/156