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: pin full-width Dev Tools loading skeletons to the bar header shape (#13011)

[._.]/ Adam Eivy10efa0952630
diff --git a/client/src/pages/devToolsLoadingSkeleton.test.js b/client/src/pages/devToolsLoadingSkeleton.test.js
new file mode 100644
index 0000000000..5cf6aaa557
--- /dev/null
+++ b/client/src/pages/devToolsLoadingSkeleton.test.js
@@ -0,0 +1,21 @@
+import { readFileSync } from 'node:fs';
+import { describe, expect, it } from 'vitest';
+
+// These routes are full-width (see layoutRoutes.js), so <main> neither pads nor
+// scrolls; the loading skeleton must mirror the loaded PageHeader bar shape.
+const FILES = [
+ '../pages/Uploads.jsx',
+ '../pages/AgentsPage.jsx',
+ '../pages/HistoryPage.jsx',
+ '../components/integrations/IntegrationInstancesPage.jsx',
+];
+
+describe('full-width Dev Tools loading skeletons', () => {
+ it.each(FILES)('%s renders PageSkeleton with header="bar" fullHeight padded', (file) => {
+ const src = readFileSync(new URL(file, import.meta.url), 'utf8');
+ const tag = src.match(/<PageSkeleton[^>]*?(?:\/>|>)/s)?.[0] ?? '';
+ expect(tag).toContain('header="bar"');
+ expect(tag).toMatch(/\bfullHeight\b/);
+ expect(tag).toMatch(/\bpadded\b/);
+ });
+});