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: query the WritersRoom work pane as a labelled region (#9163)

[._.]/ Adam Eivy92c5af649676
diff --git a/client/src/pages/WritersRoom.jsx b/client/src/pages/WritersRoom.jsx
index 386bd8b58a..abbcb4176f 100644
--- a/client/src/pages/WritersRoom.jsx
+++ b/client/src/pages/WritersRoom.jsx
@@ -201,7 +201,7 @@ export default function WritersRoom() {
</aside>
)}
- <section className="min-h-0 flex flex-col flex-1">
+ <section aria-label="Work editor" className="min-h-0 flex flex-col flex-1">
{loadingWork && <div className="p-6 text-sm text-gray-500">Loading work…</div>}
{!loadingWork && !activeWork && (
<div className="flex-1 flex items-center justify-center p-8">
diff --git a/client/src/pages/WritersRoom.test.jsx b/client/src/pages/WritersRoom.test.jsx
index f092ae00e0..f64e65d6a8 100644
--- a/client/src/pages/WritersRoom.test.jsx
+++ b/client/src/pages/WritersRoom.test.jsx
@@ -24,7 +24,7 @@ describe('WritersRoom empty state', () => {
</MemoryRouter>,
);
- const main = screen.getByRole('main');
+ const main = screen.getByRole('region', { name: 'Work editor' });
expect(within(main).getByText('Create a work or pick one from the library to start writing.')).toBeInTheDocument();
expect(within(main).queryByText(/Write for 10/)).toBeNull();