You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constcyView=require("cy-view");constdevices=[{model: "macbook-15",width: 1440,height: 900},{model: "ipad-2",width: 768,height: 1024},{model: "iphone-6+",width: 414,height: 736}];// Add urls to test againstconsturls=["https://ao.com/product/idc8t3b-indesit-eco-time-condenser-tumble-dryer-white-38191-18.aspx","https://ao.com/product/zwf01483wr-zanussi-lindo300-washing-machine-white-29672-1.aspx"];// Pass cy-view an array of devices structured like the devices constant aboveconstwashingMachinePageTests=cyView(devices);// Pass your urls constant in and your good to go!washingMachinePageTests(urls,()=>{describe("My tests running on all viewports across various URLs",()=>{it("should test something...",()=>{//...do yo' thang});});});
About
A utility function to run Cypress tests across multiple viewports