Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cypress-devicer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-devicer

A utility function to run Cypress tests on multiple viewports

  • 1.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

cy-view

  • Run tests suite across multiple viewports

Installation

Install cy-view

$ npm i --save-dev cy-view

Usage

import cyView from 'cy-view';

const devices = [
	{
		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 against
const urls = [
	'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'
];

// Tell cy-view which devices you want to test on with an array of objects structured like the devices variable above
const washingMachinePageTests = cyView(devices);

// Pass your urls variable in and your good to go!
washingMachinePageTests(urls, () => {
	it('should blah blah blah...', () => {
		...assertions here!
	});
});

Keywords

FAQs

Package last updated on 19 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc