Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(settings): add assertion that test button is enabled before click

Steven Enamakel9c307297fa1d
diff --git a/app/src/components/settings/panels/BrowserConnectionsPanel.test.tsx b/app/src/components/settings/panels/BrowserConnectionsPanel.test.tsx
index 260c864b8b..fc167ad6f6 100644
--- a/app/src/components/settings/panels/BrowserConnectionsPanel.test.tsx
+++ b/app/src/components/settings/panels/BrowserConnectionsPanel.test.tsx
@@ -55,6 +55,9 @@ describe('BrowserConnectionsPanel', () => {
expect.objectContaining({ enabled: true, profile_mode: 'fresh' })
)
);
+ await waitFor(() =>
+ expect(screen.getByText('connections.browser.testModule')).toBeEnabled()
+ );
mocks.rpc.mockResolvedValueOnce({ result: { module: { id: 'tinybrowser', state: 'ready' } } });
fireEvent.click(screen.getByText('connections.browser.testModule'));
await waitFor(() =>