cy-eye
v3.0.1
Published
A fs based lib to create json files with cypress names
Readme

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 -gor
$ yarn install cy-eye -gCreate 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