@rscollabs/rs-cypress-api-plugin
v0.3.68
Published
A plugin to support api calls used by LTK Cypress testing frameworks
Downloads
298
Readme
LTK Cypress API Plugin
LTK Cypress API Plugin is a Node package for dealing with API calls used by Cypress framework within LTK
Installation
Use the node package manager npm to install LTK Cypress API Plugin.
npm i @rscollabs/rs-cypress-api-plugin --save-dev
Usage
Import the plugin in your Cypress commands file (/support/commands.ts)
import '@rscollabs/rs-cypress-api-plugin/commands'
If you using typescript set the types in tsconfig.json
"types": [ "@rscollabs/rs-cypress-api-plugin" ],
Code review
Before submitting plugin changes to code review test your changes locally:
- Make your change, and zip the package
npm pack
- Uninstall cypress plugin
npm uninstall @rscollabs/rs-cypress-api-plugin
- Add plugin path in
package.json
consuming repo, shoud be something like
@rscollabs/rs-cypress-api-plugin: "/path/to/rscollabs-rs-cypress-api-plugin-0.3.58.
tgz'"
- Install
npm i
Once everything is tested submit PR for review, merge and publish after approval, update the plugin version in the package.json
npm publish
Once plugin published update consuming repos with new version of a plugin
- rs-brand-ui
- collabs-influencer-ui
- collabs-messaging-ui
- rs-brand-partnership-ui
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
LTK