-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[Bug]: Playwright 1.45.0 raises an error ENOENT: no such file or directory, open '/path/to/test-results/.playwright-artifacts-0/hash.zip' with Electron #31473
Comments
@mtsmfm Do you still have the issue after the update 1.45.1 ? |
I tried to reproduce with the repository above and 1.45.1 fixes the issue for that. Maybe you issue is different or you didn't update? |
I don't see the error with the latest version but it seems now it doesn't capture screenshots/snapshots with Electron for some reason. |
@mtsmfm please file a separate bug with reproduction steps, since I'm not able to reproduce with your original reproduction. This works for me: import { test as base } from "@playwright/test";
const test = base.extend({
electronApp: async ({ playwright }, use) => {
const app = await playwright._electron.launch({
args: ["../electron-window-app.js"],
});
await use(app);
await app.close();
},
});
test("should work", async ({ electronApp }) => {
await electronApp.context().tracing.start({ screenshots: true, snapshots: true });
const window = await electronApp.firstWindow();
await window.goto("http://facebook.com");
await window.goto("http://microsoft.com");
await new Promise((r) => setTimeout(r, 1000));
await electronApp.context().tracing.stop({ path: "trace.zip"});
}); happy to look into it / fix! |
Version
1.45.0
Steps to reproduce
Expected behavior
Actual behavior
Additional context
Perhaps the error is thrown by
await app.close();
as I don't see any error if I remove the line.Environment
The text was updated successfully, but these errors were encountered: