3.0.1 • Published 1 year ago
cy-eye v3.0.1
node CLI to group and contextualize your cypress data tags in angular projects
Purpose
Simple way to create locator objects that contains cypress tags
Dependencies
Usage
$ npm install cy-eye -g
or
$ yarn install cy-eye -g
Create cy-eye.json.config in project root dir
{
locatorsDir: "./locators",
tagToLocate: "data-cy"
}
Where:
locatorsDir - where locators will be
tagToLocate - tag you are looking for
- data-cy is the default target tag
To generate locators run:
$ cy-eye locate <component_path>
Then checkout locatorsDir, that will be with this structure:
project
└───locators
│ └───componentName
│ locator.js