Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test: provision the palette browser driver in client CI (#9529)

Adam Eivy8cb4f28471b8
diff --git a/client/package-lock.json b/client/package-lock.json
index cbe65b0e70..150946d14e 100644
--- a/client/package-lock.json
+++ b/client/package-lock.json
@@ -30,6 +30,7 @@
"@testing-library/user-event": "14.6.7",
"@vitejs/plugin-react": "6.1.1",
"happy-dom": "20.14.5",
+ "playwright-core": "1.63.0",
"rollup-plugin-visualizer": "7.1.1",
"tailwindcss": "4.3.3",
"vite": "8.3.1",
@@ -2859,6 +2860,19 @@
"url": "https://github.com/sponsors/jonschlinkert"
}
},
+ "node_modules/playwright-core": {
+ "version": "1.63.0",
+ "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.63.0.tgz",
+ "integrity": "sha512-rYCsBF/M5HjUch52bbtVONEFjv6Xu8sm8h72dNlR5bzIE1fvC/bxgspzkjSfU+MweEMmPM8KJebG6nnyxo5mCg==",
+ "license": "Apache-2.0",
+ "bin": {
+ "playwright-core": "cli.js"
+ },
+ "engines": {
+ "node": ">=20"
+ },
+ "dev": true
+ },
"node_modules/postcss": {
"version": "8.5.28",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.28.tgz",
diff --git a/client/package.json b/client/package.json
index 2fffcde31f..be4d73cfda 100644
--- a/client/package.json
+++ b/client/package.json
@@ -41,6 +41,7 @@
"@testing-library/user-event": "14.6.7",
"@vitejs/plugin-react": "6.1.1",
"happy-dom": "20.14.5",
+ "playwright-core": "1.63.0",
"rollup-plugin-visualizer": "7.1.1",
"tailwindcss": "4.3.3",
"vite": "8.3.1",
diff --git a/client/src/components/CmdKSearch.browser.test.js b/client/src/components/CmdKSearch.browser.test.js
index edc8f26020..b9799b4e77 100644
--- a/client/src/components/CmdKSearch.browser.test.js
+++ b/client/src/components/CmdKSearch.browser.test.js
@@ -6,8 +6,13 @@ import { fileURLToPath } from 'node:url';
import { createServer } from 'vite';
import react from '@vitejs/plugin-react';
-const requireServer = createRequire(new URL('../../../server/package.json', import.meta.url));
-const { chromium } = requireServer('playwright-core');
+const require = createRequire(import.meta.url);
+// Prefer the client dev dependency; linked worktrees can also use the same
+// pinned driver from the server without installing into shared node_modules.
+const { chromium } = require(require.resolve('playwright-core', { paths: [
+ fileURLToPath(new URL('../..', import.meta.url)),
+ fileURLToPath(new URL('../../../server', import.meta.url)),
+] }));
const chrome = [process.env.CHROME_PATH, chromium.executablePath(),
'/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
'/usr/bin/google-chrome', '/usr/bin/chromium', '/usr/bin/chromium-browser',