You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Mocha to run my tests and I'm trying to store the screenshots taken on a tmp folder on the project root. If the folder doesn't exist, page.screenshot returns the following error:
Error: ENOENT: nosuchfileordirectory,open'tmp/user info.png'
Note: use DEBUG=pw:apienvironmentvariableandreruntocapturePlaywrightlogs.--ASYNC--atPage.screenshot(node_modules/playwright/lib/helper.js:78:23)atContext.<anonymous>(test/mocha/user.js:62:16)atprocessImmediate(internal/timers.js:439:21)
PoC
In the first run, I had saveVideo function being called, and it created the tmp folder on the root. In the second run, I commented the saveVideo line and removed the previously created folder to see if page.screenshot were able to create a new folder. Recorded a video to demonstrate the scenario. 👇
Context:
Code Snippet
Describe the bug
I'm using Mocha to run my tests and I'm trying to store the screenshots taken on a
tmp
folder on the project root. If the folder doesn't exist,page.screenshot
returns the following error:PoC
In the first run, I had saveVideo function being called, and it created the
tmp
folder on the root. In the second run, I commented the saveVideo line and removed the previously created folder to see ifpage.screenshot
were able to create a new folder. Recorded a video to demonstrate the scenario. 👇https://www.loom.com/share/4f6fe2f6289e41d09e27a40d02a7f54d
The text was updated successfully, but these errors were encountered: