showing results for - "cypress set viewport"
Nicole
07 Aug 2016
1// pass viewport in cmd, this will over ride settings in cypress.json
2
3"script_name": "./node_modules/.bin/cypress run --browser chrome --config viewportWidth=414,viewportHeight=896 --spec 'cypress/integration/file_name.js'"
4      
Niclas
20 May 2017
1//add this in cypress.json
2{  
3  "viewportWidth": 1280,
4  "viewportHeight": 720
5}
Valerio
15 Apr 2018
1//for all test files, add this in cypress.json
2{  
3  "viewportWidth": 1280,
4  "viewportHeight": 720
5}
6//for individual file(applies for all test cases inside this file)
7//add a script in package.json
8
9"script_name": "./node_modules/.bin/cypress run --browser chrome --config viewportWidth=414,viewportHeight=896 --spec 'cypress/integration/file_name.js'"
10      
queries leading to this page
cypress get viewport positionhow to set screen size in cypresscypress viewportcypress run tests with different viewportsget within viewport cypressconfigure viewport in plugin file cypresscypress viewport heightcypress browser sizecypress get current viewportcy viewport 28 27ipad 2 27 29 3bcypress run tests on viewportviewportheight viewportwidth defaults cypresscypress change viewportcypress viewport configcypress viewport before visitcypress json viewport examplesupport ability to set viewport in 60before 60cypress window sizeviewportconfig in cypresscypress viewport changes per testcypress cy viewport set viewport cypresscypress inviewportcypress visible in viewportcypres viewportcypress viewport macbookcypress change resolutioncypress viewport presetscypress screen sizecypress viewport configurecypress viewport to look widerset viewport cypresscypress cli viewportcy viewportcypress open no viewportcypress no viewportcypress viewportscypress get viewport sizecypress mobile view configurationset viewport in cypresscypress viewport defaultsupport ability to set viewport in 60before 60 cypress cypress support ability to set viewport in beforecypress support ability to set viewport in 60before 60change cypress viewport in support filehow to pass the viewport in cypresscypress visible within viewport support ability to set viewport in 60before 60 cypresscypress change viewport in testcypress upport ability to set viewport in 60before 60cypress visit viewport before testscypress set viewport for all test casescypress rhange viewportcypress default viewportcypress viewport not asyncchange viewport cypresscy should not in viewportviewport complete setup in cypresshow to change viewport in cypresscypress viewport examplecypress keep viewport from previous testcypress not in viewportcy viewport examplecypress viewport configure in plugin foldercypress mobile viewhow to set default viewport in cypressdefault viewport cypresscypress io define resolutioncypress responsive testcypress test mobile viewviewport cypresscypress set viewportcypress is in viewportcypress view portcypress element in viewportcypress should be in viewportcypress standard viewportcypress check if width is 100 5ecypress viexportcypress resolutioncypress default viewport iphonecypress viewport changes after beforeviewport in cypresshow to change viewport in cypress jsoncypress change viewport before opening pagecypress set viewport