-
Notifications
You must be signed in to change notification settings - Fork 17
Screenshot cache with previous test? #88
Comments
Screenshots are taken before a step is run - so if your browser is in another page before you navigate - it will show "wherever the browser was before navigation started" basically :] |
I think it would make sense to warn here though? |
or is there a way to reset the page. my thinking is better to show a white screen then the previous test's last screen? |
|
Also i think that showing the screenshot is actually good thing to do, |
Yeah, I agree it's correct but we can show a (helpful) warning so the developer knows how they got there |
Thanks for the suggestion, it works! |
Hi there,
I am using the jest-puppeteer example shown in integration-examples/another-jest-and-puppeteer/example.test.js and I been noticing that the first screenshot of every tests are based on last screen of the previous tests that are being run.
Attached the code and the root cause run result.
example.test.zip
.root-cause.zip
The text was updated successfully, but these errors were encountered: