-
Notifications
You must be signed in to change notification settings - Fork 75
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
jestPlaywright.debug() support in Jest-circus #66
Comments
@thernstig according to that issue, |
Ok, that's good news though that you are looking into better alternatives. Will happily test it once in place. |
Made some research on it. Seems like it is useless for jest 25: https://github.com/mmarkelov/jest-playwright/blob/6db32bf6ad8416af043e9c93eebba4e24e3be1f9/src/PlaywrightEnvironment.ts#L73-L83 beforeAll(async () => {
jest.setTimeout(100000)
})
it('your test, async () => {
await jestPlaywright.debug()
}) I'm thinking about adding some debug script for this. Something like this: Also some logic may be added in Env: async handleTestEvent(event) {
if (event.name === 'test_fn_failure') {
await this.global.jestPlaywright.debug();
}
} What do you think about it? |
Is there no way to set Our project is currently not using If one look at what a user want to achieve with
I assume one option is to remove it and instead add this a recommendation on how to debug in the README.md? Not ideal maybe, not super-UX friendly but at least that should work. |
I suppose we can close it. |
I'm going to be honest to say I've not investigated this yet, but seeing as jest-playwright's grandfather is jest-puppeteer, I expect this is not supported.
For reference for this issue, see argos-ci/jest-puppeteer#255
I wonder if there any plans to support jest-circus. While jest-circus works kinda fine out of the box, I noticed that jestPlaywright.debug() does not really work as expected.
The text was updated successfully, but these errors were encountered: