MCPcopy Index your code
hub / github.com/andrewmcoupe/cy-view

github.com/andrewmcoupe/cy-view @v1.0.11

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.11 ↗ · + Follow
2 symbols 2 edges 1 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

cy-view

Run tests suite across multiple viewports

Installation

$ npm i --save-dev cy-view

Usage - CYPRESS MUST BE INSTALLED

Parameter Type
devices Array
urls Array
const cyView = require("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"
];

// Pass cy-view an array of devices structured like the devices constant above
const washingMachinePageTests = 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
        });
    });
});

Extension points exported contracts — how you extend this code

DeviceList (Interface)
(no doc)
src/index.ts

Core symbols most depended-on inside this repo

prepareTestsForDevices
called by 0
src/index.ts

Shape

Function 1
Interface 1

Languages

TypeScript100%

Modules by API surface

src/index.ts2 symbols

For agents

$ claude mcp add cy-view \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page