Skip to content

A platform for community discussion. Free, open, simple.

DEV: Enable local-storage for smoke test (#34060)

David Taylor2fc4b34c5a54
diff --git a/test/smoke-test.mjs b/test/smoke-test.mjs
index 7665b80112b..6af0b2515d8 100644
--- a/test/smoke-test.mjs
+++ b/test/smoke-test.mjs
@@ -20,9 +20,15 @@ import puppeteer from "puppeteer-core";
executablePath: Launcher.getInstallations()[0],
// when debugging locally setting the SHOW_BROWSER env variable can be very helpful
headless: process.env.SHOW_BROWSER === undefined,
- args: ["--disable-local-storage", "--no-sandbox"],
+ args: ["--no-sandbox"],
});
const page = await browser.newPage();
+ page.on("console", (msg) => {
+ if (["error", "warning"].includes(msg.type())) {
+ console.log(`PAGE ${msg.type().toUpperCase()}: ${msg.text()}`);
+ }
+ });
+ page.on("pageerror", (err) => console.log(`PAGE ERROR: ${err.message}`));
await page.setViewport({
width: 1366,