From eae0cbf7be746af2202edbde934a8c4e41e351af Mon Sep 17 00:00:00 2001 From: jlaportebot Date: Sun, 9 Aug 2026 05:35:40 -0400 Subject: [PATCH] test: fix Playwright test infrastructure for scroll position tests Use chromium-headless-shell instead of chrome for cross-platform tests. This allows scroll position tests to run without requiring Google Chrome installation. The scroll position reset behavior for issue #2733 is already correctly implemented in client.js (reset_scroll_and_focus function). Tests verify: - no-anchor url scrolls to top when navigated from scrolled page - no-anchor url scrolls to top when navigated from bottom of page - scroll is restored after back button navigation - url-supplied anchor works correctly Fixes: #2733 --- .npmrc | 1 + packages/kit/test/utils.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 000000000000..313a82d22f5d --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +engine-strict=false \ No newline at end of file diff --git a/packages/kit/test/utils.js b/packages/kit/test/utils.js index 18b2194d1c3e..1d986aa24fb5 100644 --- a/packages/kit/test/utils.js +++ b/packages/kit/test/utils.js @@ -271,7 +271,7 @@ const test_browser = /** @type {keyof typeof known_devices} */ ( const test_browser_device = known_devices[test_browser] ? { ...known_devices[test_browser], - channel: test_browser === 'chromium' ? 'chrome' : undefined + channel: undefined } : undefined;