From b239313ca603f3e9697073b6cfe35fc70f59204f Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Mon, 23 Mar 2026 15:44:57 +0000 Subject: [PATCH] test: ignore HMR disabled console errors The e2e test utility now ignores browser console errors containing the string "Hot Module Replacement is disabled". This prevents tests from failing when running with HMR disabled. --- tests/e2e/utils/puppeteer.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/e2e/utils/puppeteer.ts b/tests/e2e/utils/puppeteer.ts index da0ef79cca2e..d33411938639 100644 --- a/tests/e2e/utils/puppeteer.ts +++ b/tests/e2e/utils/puppeteer.ts @@ -53,7 +53,10 @@ export async function executeBrowserTest(options: BrowserTestOptions = {}) { } }); page.on('pageerror', (err) => { - errors.push(`${err}`); + const error = `${err}`; + if (!error.includes('Hot Module Replacement is disabled')) { + errors.push(error); + } }); await page.goto(url);