-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add before:spec event #9646
Conversation
Thanks for taking the time to open a PR!
|
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
@chrisbreiding I'd like some clarification on how this event runs when run via |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
suggested fixes Co-authored-by: Zach Bloomquist <[email protected]>
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
User facing changelog
before:spec
event in the plugins file. See the documentation for more information (TODO: link to doc).Additional details
The event fires before a spec is run.
It only fires in run mode.
The event handler receives one argument, an object with different versions of the spec file/path.
PR Tasks
cypress-documentation
? Add doc for before:spec event cypress-documentation#3393type definitions
?cypress.schema.json
?