diff --git a/web/e2e-tests/lib/common.ts b/web/e2e-tests/lib/common.ts index 1cca4062e0..18101dad30 100644 --- a/web/e2e-tests/lib/common.ts +++ b/web/e2e-tests/lib/common.ts @@ -650,14 +650,10 @@ export async function run_test_async(test_function: (page: Page) => Promise { page_errored = true; - // Puppeteer gives us the stack as the message for some reason. - const error1 = new Error("dummy"); - error1.stack = error.message; - const console_ready1 = console_ready; console_ready = (async () => { const frames = await Promise.all( - ErrorStackParser.parse(error1).map(async (frame1) => { + ErrorStackParser.parse(error).map(async (frame1) => { let frame = frame1 as unknown as StackFrame; try { frame = await gps.getMappedLocation(frame); @@ -670,7 +666,7 @@ export async function run_test_async(test_function: (page: Page) => Promise