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: fix flaky BrowseTab Save-button query racing the Edit transition (#6051)
Bryandero98ce46386ca45a
diff --git a/client/src/components/wiki/tabs/BrowseTab.test.jsx b/client/src/components/wiki/tabs/BrowseTab.test.jsxindex 9f21a9f4a5..bd9541f495 100644--- a/client/src/components/wiki/tabs/BrowseTab.test.jsx+++ b/client/src/components/wiki/tabs/BrowseTab.test.jsx@@ -104,11 +104,16 @@ describe('BrowseTab iCloud force save', () => {renderTab();fireEvent.click(screen.getByText('Example Source'));fireEvent.click(await screen.findByRole('button', { name: 'Edit' }));+ // Clicking Edit swaps the button row for the Save/Cancel pair — under+ // full-suite contention that re-render doesn't always land before the+ // next synchronous query runs, so wait for it here rather than assuming+ // it's already mounted at every clickSave() call site (#6051).+ await screen.findByRole('button', { name: /Save/ });};const clickSave = async () => {const before = api.updateNote.mock.calls.length;- fireEvent.click(screen.getByRole('button', { name: /Save/ }));+ fireEvent.click(await screen.findByRole('button', { name: /Save/ }));await waitFor(() => expect(api.updateNote.mock.calls.length).toBe(before + 1));};