fix(browser): default hook timeout 2m

This commit is contained in:
Peter Steinberger
2025-12-20 09:45:04 +00:00
parent f54c801bd2
commit 94c495c8ed
4 changed files with 8 additions and 8 deletions

View File

@@ -127,7 +127,7 @@ describe("pw-tools-core", () => {
await Promise.resolve();
expect(waitForEvent).toHaveBeenCalledWith("filechooser", {
timeout: 30_000,
timeout: 120_000,
});
expect(fileChooser.setFiles).toHaveBeenCalledWith(["/tmp/a.txt"]);
});
@@ -205,7 +205,7 @@ describe("pw-tools-core", () => {
});
await Promise.resolve();
expect(waitForEvent).toHaveBeenCalledWith("dialog", { timeout: 30_000 });
expect(waitForEvent).toHaveBeenCalledWith("dialog", { timeout: 120_000 });
expect(accept).toHaveBeenCalledWith("x");
expect(dismiss).not.toHaveBeenCalled();
@@ -219,7 +219,7 @@ describe("pw-tools-core", () => {
});
await Promise.resolve();
expect(waitForEvent).toHaveBeenCalledWith("dialog", { timeout: 30_000 });
expect(waitForEvent).toHaveBeenCalledWith("dialog", { timeout: 120_000 });
expect(dismiss).toHaveBeenCalled();
expect(accept).not.toHaveBeenCalled();
});