Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

cypress set viewport

//add this in cypress.json
{  
  "viewportWidth": 1280,
  "viewportHeight": 720
}
Comment

cypress set viewport for all test cases

// pass viewport in cmd, this will over ride settings in cypress.json

"script_name": "./node_modules/.bin/cypress run --browser chrome --config viewportWidth=414,viewportHeight=896 --spec 'cypress/integration/file_name.js'"
      
Comment

cypress set viewport

//for all test files, add this in cypress.json
{  
  "viewportWidth": 1280,
  "viewportHeight": 720
}
//for individual file(applies for all test cases inside this file)
//add a script in package.json

"script_name": "./node_modules/.bin/cypress run --browser chrome --config viewportWidth=414,viewportHeight=896 --spec 'cypress/integration/file_name.js'"
      
Comment

PREVIOUS NEXT
Code Example
Javascript :: react js router parameters 
Javascript :: jquery get data attribute of selected option 
Javascript :: update data firebase firestore javascript 
Javascript :: json-server 
Javascript :: js is number 
Javascript :: console redux state shows proxy 
Javascript :: how to read a json file in node js 
Javascript :: javascript clear classlist 
Javascript :: flatlist listemptycomponent center 
Javascript :: node js get ip 
Javascript :: arry suffle javascript 
Javascript :: javascript combine array of arrays 
Javascript :: how to send array in query string in javascript 
Javascript :: cancel settimeout 
Javascript :: next js fallback 
Javascript :: howt to disable a select tag using js 
Javascript :: react native mac 
Javascript :: how to extract year from utc in javascript 
Javascript :: number to array javascript 
Javascript :: get value before change and after change js 
Javascript :: js indexof nested array 
Javascript :: get document height js 
Javascript :: html video autoplay not working 
Javascript :: react typewriter 
Javascript :: asignar valselect2 js 
Javascript :: inarray javascript 
Javascript :: get last in array javascript 
Javascript :: a <route is only ever to be used as the child of <routes element" 
Javascript :: node js module export class 
Javascript :: inline style in nextjs 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =