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: require rendered POST ordering panels (#11990)

Adam Eivy064e69225288
diff --git a/client/src/components/meatspace/post/PostSessionLauncher.test.jsx b/client/src/components/meatspace/post/PostSessionLauncher.test.jsx
index f29a3f516f..19477e1b9a 100644
--- a/client/src/components/meatspace/post/PostSessionLauncher.test.jsx
+++ b/client/src/components/meatspace/post/PostSessionLauncher.test.jsx
@@ -519,19 +519,17 @@ describe('PostSessionLauncher — Start card (issue #3249)', () => {
getPostRecommendations.mockResolvedValue({ recommendations: [
{ id: 'default:full-post', kind: 'default', title: 'Keep your streak going', detail: 'No gaps', deepLink: '/post/launcher', priority: 0 },
] });
- const { container } = renderLauncher();
+ renderLauncher();
await waitFor(() => expect(screen.getByText('Up next')).toBeTruthy());
// Compare document order: the Full POST button must precede every panel it
// used to sit below. Node.compareDocumentPosition returns FOLLOWING (4) when
// the argument comes after the reference node.
const start = screen.getByText('Full POST');
- for (const label of ["Today's Status", 'Goals', 'Up next', 'Session Mode'].filter(Boolean)) {
- const el = screen.queryByText(label);
- if (!el) continue;
+ for (const label of ["Today's Status", 'Goals', 'Up next']) {
+ const el = screen.getByText(label);
expect(start.compareDocumentPosition(el) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();
}
- expect(container).toBeTruthy();
});
it('leads with a CTA that dispatches the top recommendation', async () => {
diff --git a/client/src/components/pipeline/editorial/EditorialHealthPanel.test.jsx b/client/src/components/pipeline/editorial/EditorialHealthPanel.test.jsx
index 1712c9aa90..e7170ab3f1 100644
--- a/client/src/components/pipeline/editorial/EditorialHealthPanel.test.jsx
+++ b/client/src/components/pipeline/editorial/EditorialHealthPanel.test.jsx
@@ -57,11 +57,10 @@ beforeEach(() => {
describe('EditorialHealthPanel', () => {
it('renders nothing without a series', async () => {
- const { container } = await renderPanel({ seriesId: '' });
+ await renderPanel({ seriesId: '' });
// The router + probe still render; the panel itself renders null.
expect(screen.queryByText('Editorial Health')).toBeNull();
expect(getEditorialHealth).not.toHaveBeenCalled();
- expect(container).toBeTruthy();
});
it('shows the score, readiness, severity breakdown and trend delta', async () => {