Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
camillobruni committed Jan 13, 2025
1 parent fe797ae commit 18c64bb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/run-end2end.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ async function testPage(url) {

console.log(" - Awaiting Benchmark");
const { error, metrics } = await driver.executeAsyncScript((callback) => {
globalThis.addEventListener("SpeedometerDone", () => callback({ metrics: globalThis.benchmarkClient.metrics }), { once: true });
globalThis.addEventListener(
"SpeedometerDone",
() =>
callback({
metrics: globalThis.benchmarkClient.metrics,
}),
{ once: true }
);
// Install error handlers to report page errors back to selenium.
globalThis.addEventListener("error", (message, source, lineno, colno, error) =>
callback({
Expand Down

0 comments on commit 18c64bb

Please sign in to comment.