Skip to content

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

test(browser-connections): remove module test from panel spec

Steven Enamakelba3a233c77bd
diff --git a/app/src/components/settings/panels/BrowserConnectionsPanel.test.tsx b/app/src/components/settings/panels/BrowserConnectionsPanel.test.tsx
index dd42f65b5f..27c842c1b2 100644
--- a/app/src/components/settings/panels/BrowserConnectionsPanel.test.tsx
+++ b/app/src/components/settings/panels/BrowserConnectionsPanel.test.tsx
@@ -38,16 +38,22 @@ beforeEach(() => {
});
describe('BrowserConnectionsPanel', () => {
- it('shows actual module state and shared website policy', async () => {
+ it('shows Chrome readiness and the shared website policy', async () => {
renderWithProviders(<BrowserConnectionsPanel />);
expect(screen.getByText('connections.earlyAlphaNotice')).toBeInTheDocument();
expect(await screen.findByText('selenium.dev')).toBeInTheDocument();
- expect(screen.getByText('available')).toBeInTheDocument();
- expect(screen.getByText('connections.browser.routeDirect')).toBeInTheDocument();
expect(screen.getByText('connections.browser.notVerified')).toBeInTheDocument();
+ // Module state lives on the Computer page's status card now.
+ expect(mocks.rpc).not.toHaveBeenCalled();
});
- it('saves browser settings and tests the module through core RPC', async () => {
+ it('leaves the alpha notice to the Computer page when embedded', async () => {
+ renderWithProviders(<BrowserConnectionsPanel embedded />);
+ expect(await screen.findByText('selenium.dev')).toBeInTheDocument();
+ expect(screen.queryByText('connections.earlyAlphaNotice')).not.toBeInTheDocument();
+ });
+
+ it('saves browser settings through core RPC', async () => {
renderWithProviders(<BrowserConnectionsPanel />);
await screen.findByText('selenium.dev');
fireEvent.click(screen.getByLabelText('connections.browser.enabled'));
@@ -57,14 +63,6 @@ describe('BrowserConnectionsPanel', () => {
expect.objectContaining({ enabled: true, profile_mode: 'fresh' })
)
);
- mocks.rpc.mockResolvedValueOnce({ result: { module: { id: 'tinycomputer', state: 'ready' } } });
- fireEvent.click(screen.getByText('connections.browser.testModule'));
- await waitFor(() =>
- expect(mocks.rpc).toHaveBeenCalledWith({
- method: 'openhuman.modules_load',
- params: { id: 'tinycomputer' },
- })
- );
});
it('links to allowed websites through the Connections router', async () => {