@djgould/cypress-ai
v0.2.0
Published
Asks AI to help guide you on cypress test failures
Downloads
3
Maintainers
Readme
THIS IS CURRENTLY AN EXPERIMENTAL PROJECT. YOU WILL PROBABLY GET ERRORS
cypress-ai
This Plugin leverages OpenAI to help give tips to debugging cypress tests when they fail.
Installation
npm install @djgould/cypress-ai --save-dev
Usage
cypress.config.ts
import { defineConfig } from 'cypress'
import { cypressAI } from '@djgould/cypress-ai'
export default defineConfig({
e2e: {
setupNodeEvents(on, config) {
cypressAI(on, config, { apiKey: 'open ai api key' })
}
}
})
Include failed html in request to open ai
- Configure Cyclope to save page after failure here
- Add
includeFailedHtml: true
to options:
cypressAI(on, config, { apiKey: 'open ai api key', includeFailedHtml: true })
Output
Contributing
- Create an project issue with proper description and expected behaviour
- NPM command
npm run verify
have to pass locally - Provide a PR with implementation and tests