Skip to content

A chrome extension to highlight all elements with a data-cy attribute and display that attribute value. All elements can be exported.

Notifications You must be signed in to change notification settings

Peter-McKinney/cypress-data-cy-highlight-chrome

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cypress-data-cy-highlight

image image

A chrome extension that highlights elements with the data-cy attribute. The elements can be exported to a file for further review. Data-cy is the default attribute to search for but users can enter a custom attribute to search for.

Store Page:

Chrome Web Store

Loading the unpacked plugin (not from the store)

The unpacked plugin is located in the src folder

chrome developer docs

Follow the instructions located at the above url. It's probably a good idea to read through that entire tutorial.

Development

Run the following after cloning this repository:

npm ci
npm run build
npm run start

The plugin uses https://github.com/vercel/serve to host a sample site for testing the plugin. Navigate to localhost:3000 to load the custom site which has elements with a data-cy attribute. Then load the local copy of the plugin by:

In the address bar of chrome, navigate to: chrome://extensions/. Click on "Load Unpacked"

image

Select the dist folder which includes all the unpacked javascript resources.

image

Open your chrome extension menu and interact with the cypress-data-cy-highlight extension.

Bundling the extension

Run:

npm run build

This will create a zip file named extension.zip in the root directory of the project. This zip file can be uploaded to the chrome web store for distribution.

About

A chrome extension to highlight all elements with a data-cy attribute and display that attribute value. All elements can be exported.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •