Skip to content

Commit

Permalink
Merge pull request mozilla#17122 from timvandermeij/autoprint
Browse files Browse the repository at this point in the history
Remove Escape key press from the `autoprint` integration test, and tweak the protocol timeout configuration for Puppeteer
  • Loading branch information
timvandermeij authored Oct 15, 2023
2 parents 5c45dfa + 0c763d6 commit 76bf3da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 0 additions & 1 deletion test/integration/scripting_spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1793,7 +1793,6 @@ describe("Interaction", () => {
await Promise.all(
pages.map(async ([browserName, page]) => {
await page.waitForSelector(".printedPage");
await page.keyboard.press("Escape");
})
);
});
Expand Down
7 changes: 5 additions & 2 deletions test/test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -910,8 +910,11 @@ async function startBrowser(browserName, startUrl = "") {
// The timeout for individual protocol (CDP) calls should always be lower
// than the Jasmine timeout. This way protocol errors are always raised in
// the context of the tests that actually triggered them and don't leak
// through to other tests (causing unrelated failures or tracebacks).
protocolTimeout: /* jasmine.DEFAULT_TIMEOUT_INTERVAL = */ 30000 - 1000,
// through to other tests (causing unrelated failures or tracebacks). The
// timeout is set to 75% of the Jasmine timeout to catch operation errors
// later in the test run and because if a single operation takes that long
// it can't possibly succeed anymore.
protocolTimeout: 0.75 * /* jasmine.DEFAULT_TIMEOUT_INTERVAL = */ 30000,
};

if (!tempDir) {
Expand Down

0 comments on commit 76bf3da

Please sign in to comment.