A plugin to support api calls used by LTK Cypress testing frameworks
npm install @rscollabs/rs-cypress-api-pluginLTK Cypress API Plugin is a Node package for dealing with API calls used by Cypress framework within LTK
Use the node package manager npm to install LTK Cypress API Plugin.
``bash`
npm i @rscollabs/rs-cypress-api-plugin --save-dev
Import the plugin in your Cypress commands file (/support/commands.ts)
`JavaScript`
import '@rscollabs/rs-cypress-api-plugin/commands'
If you using typescript set the types in tsconfig.json
`JavaScript`
"types": [ "@rscollabs/rs-cypress-api-plugin" ],
Before submitting plugin changes to code review test your changes locally:
1. Make your change, and zip the package
`shell`
npm pack
2. Uninstall cypress plugin
`shell`
npm uninstall @rscollabs/rs-cypress-api-plugin
3. Add plugin path in package.json consuming repo, shoud be something like
`package.json`
@rscollabs/rs-cypress-api-plugin: "/path/to/rscollabs-rs-cypress-api-plugin-0.3.58.
tgz'"
4. 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
1. rs-brand-ui
2. collabs-influencer-ui
3. collabs-messaging-ui
4. rs-brand-partnership-ui
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.
LTK