-
Notifications
You must be signed in to change notification settings - Fork 1
Add test debugging setup #24
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
Conversation
| @@ -23,7 +23,7 @@ export async function reset(opts) { | |||
|
|
|||
| window.scroll(0, 0); | |||
|
|
|||
| await sendMouse({ type: 'move', position: [0, 0] }); | |||
| await sendMouse({ type: 'move', position: [0, 0] }).catch(() => {}); | |||
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.
In manual mode, tests are run in your existing browser installs, which can't be controlled this way, so simply ignoring the failures here, though a console warning may be good. These work fine in watch mode.
| { name: 'grep', alias: 'g', type: String }, | ||
| { name: 'filter', alias: 'f', type: String, multiple: true }, |
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.
grep now just forwards to the mocha config and works as it does in the existing library. filter (open to other names) will do what grep was doing previously: filter test files so you can run your tests in 2 seconds instead of 20.
| const { watch, manual, group, files, playwright } = this.#cliArgs; | ||
|
|
||
| if (!group || group === 'default') { | ||
| if (playwright) { |
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.
Haha, just wrapping their CLI is looking better and better each time I look at these warnings...
931d3c7 to
24410f0
Compare
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.
This is working for me!
|
🎉 This PR is included in version 0.10.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This is just some basic setup to be able to run
--watchand--manual, including automatically pausing in DevTools at the top of each test file.We can still decide to implement a UI-based play/pause/next system with promises, so I'll link this to US152298 (Visual-diff: ability to debug in the browser), but won't consider it done.