gleissonneves / cy-eye

A node cli to create js files based on your cypress data props - in angular js - templates to contextualize and locate your target entity test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

banner

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

About

A node cli to create js files based on your cypress data props - in angular js - templates to contextualize and locate your target entity test

License:MIT License


Languages

Language:JavaScript 100.0%