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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
test: isolate browser fixture dependency caches (#9688)
Adam Eivyc5baa34f9b24
diff --git a/client/src/components/CmdKSearch.browser.test.js b/client/src/components/CmdKSearch.browser.test.jsindex 17b21a14a4..3ac27036d8 100644--- a/client/src/components/CmdKSearch.browser.test.js+++ b/client/src/components/CmdKSearch.browser.test.js@@ -27,8 +27,12 @@ describe.skipIf(!chrome)('command palette viewport and keyboard layout', () => {let browserTemp;let origin;beforeAll(async () => {+ browserTemp = await mkdtemp(join(tmpdir(), 'palette-chrome-'));server = await createServer({configFile: false,+ // Concurrent fixtures and linked worktrees must not replace each other's+ // optimized dependencies in the shared node_modules/.vite cache.+ cacheDir: join(browserTemp, 'vite-cache'),root: fileURLToPath(new URL('../..', import.meta.url)),plugins: [react(), {name: 'palette-browser-fixture',@@ -59,7 +63,6 @@ describe.skipIf(!chrome)('command palette viewport and keyboard layout', () => {});await server.listen();origin = server.resolvedUrls.local[0];- browserTemp = await mkdtemp(join(tmpdir(), 'palette-chrome-'));browser = await chromium.launch({ executablePath: chrome, headless: true, args: ['--mute-audio'],env: { ...process.env, TMPDIR: browserTemp, TMP: browserTemp, TEMP: browserTemp },});diff --git a/client/src/components/ui/InfoTooltip.browser.test.js b/client/src/components/ui/InfoTooltip.browser.test.jsindex efa5a1b4ce..2e649652a8 100644--- a/client/src/components/ui/InfoTooltip.browser.test.js+++ b/client/src/components/ui/InfoTooltip.browser.test.js@@ -25,8 +25,12 @@ describe.skipIf(!chrome)('help above glass cards and clipped scrollers', () => {let browserTemp;let origin;beforeAll(async () => {+ browserTemp = await mkdtemp(join(tmpdir(), 'tooltip-chrome-'));server = await createServer({configFile: false,+ // Concurrent fixtures and linked worktrees must not replace each other's+ // optimized dependencies in the shared node_modules/.vite cache.+ cacheDir: join(browserTemp, 'vite-cache'),root: fileURLToPath(new URL('../../..', import.meta.url)),plugins: [react(), {name: 'tooltip-browser-fixture',@@ -69,7 +73,6 @@ describe.skipIf(!chrome)('help above glass cards and clipped scrollers', () => {});await server.listen();origin = server.resolvedUrls.local[0];- browserTemp = await mkdtemp(join(tmpdir(), 'tooltip-chrome-'));browser = await chromium.launch({ executablePath: chrome, headless: true, args: ['--mute-audio'],env: { ...process.env, TMPDIR: browserTemp, TMP: browserTemp, TEMP: browserTemp },});@@ -88,9 +91,19 @@ describe.skipIf(!chrome)('help above glass cards and clipped scrollers', () => {async (viewport) => {const page = await browser.newPage({ viewport });try {+ const errors = [];+ page.on('pageerror', error => errors.push(error.message));+ page.on('response', response => {+ if (response.status() >= 400 && !response.url().endsWith('/favicon.ico')) errors.push(`HTTP ${response.status()}: ${new URL(response.url()).pathname}`);+ });await page.goto(`${origin}tooltip-test`);const trigger = page.getByRole('button', { name: 'Quality help' });- await trigger.focus();+ try {+ await trigger.focus();+ } catch (error) {+ throw new Error(`Fixture did not render: ${errors.join('; ') || error.message}`, { cause: error });+ }+ expect(errors).toEqual([]);const panel = page.getByRole('tooltip');await panel.waitFor();expect(await page.locator('#summary').evaluate(el => getComputedStyle(el).backdropFilter)).toMatch(/blur\(/);diff --git a/client/src/components/ui/OverflowMenu.browser.test.js b/client/src/components/ui/OverflowMenu.browser.test.jsindex 08239166ae..067779eb4a 100644--- a/client/src/components/ui/OverflowMenu.browser.test.js+++ b/client/src/components/ui/OverflowMenu.browser.test.js@@ -27,8 +27,12 @@ describe.skipIf(!chrome)('overflow menu keyboard focus', () => {let browserTemp;let origin;beforeAll(async () => {+ browserTemp = await mkdtemp(join(tmpdir(), 'overflow-chrome-'));server = await createServer({configFile: false,+ // Concurrent fixtures and linked worktrees must not replace each other's+ // optimized dependencies in the shared node_modules/.vite cache.+ cacheDir: join(browserTemp, 'vite-cache'),root: fileURLToPath(new URL('../../..', import.meta.url)),plugins: [react(), {name: 'overflow-browser-fixture',@@ -67,7 +71,6 @@ describe.skipIf(!chrome)('overflow menu keyboard focus', () => {});await server.listen();origin = server.resolvedUrls.local[0];- browserTemp = await mkdtemp(join(tmpdir(), 'overflow-chrome-'));browser = await chromium.launch({ executablePath: chrome, headless: true, args: ['--mute-audio'],env: { ...process.env, TMPDIR: browserTemp, TMP: browserTemp, TEMP: browserTemp },});