Skip to content

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

chore(tests): remove unused test files

Steven Enamakelb239630e452e
diff --git a/app/src/components/channels/__tests__/ChannelConfigPanel.test.tsx b/app/src/components/channels/__tests__/ChannelConfigPanel.test.tsx
index 3df8aeb9e7..5c7baa15d4 100644
--- a/app/src/components/channels/__tests__/ChannelConfigPanel.test.tsx
+++ b/app/src/components/channels/__tests__/ChannelConfigPanel.test.tsx
@@ -36,8 +36,9 @@ vi.mock('../ChannelCapabilities', () => ({
describe('ChannelConfigPanel', () => {
it('renders McpServersTab when selectedChannel is "mcp"', () => {
render(<ChannelConfigPanel selectedChannel="mcp" definitions={FALLBACK_DEFINITIONS} />);
+ // The page carries its own header, so the panel adds none of its own.
expect(screen.getByTestId('mcp-servers-tab')).toBeInTheDocument();
- expect(screen.getByText('MCP Servers')).toBeInTheDocument();
+ expect(screen.queryByRole('heading')).not.toBeInTheDocument();
});
it('does not render definition-based content when channel is "mcp"', () => {
diff --git a/app/src/components/channels/mcp/McpRegistryBrowser.test.tsx b/app/src/components/channels/mcp/McpRegistryBrowser.test.tsx
index 5cc6d8b9ba..4f7101e233 100644
--- a/app/src/components/channels/mcp/McpRegistryBrowser.test.tsx
+++ b/app/src/components/channels/mcp/McpRegistryBrowser.test.tsx
@@ -70,16 +70,10 @@ describe('McpRegistryBrowser', () => {
expect(mockOpenUrl).toHaveBeenCalledWith('https://github.com/acme/echo');
});
- it('opens a row from the keyboard but not from a nested link', async () => {
+ it('a nested link opens its own target only, not the row page as well', async () => {
render(<McpRegistryBrowser installedNames={new Set()} />);
await screen.findAllByTestId('mcp-registry-row');
- const row = screen.getByRole('button', { name: 'Open the page for Hosted Thing' });
- fireEvent.keyDown(row, { key: 'Enter' });
- expect(mockOpenUrl).toHaveBeenCalledWith('https://hosted.example');
-
- mockOpenUrl.mockClear();
fireEvent.click(screen.getByRole('button', { name: 'Repository' }));
- // The nested link opens its own target only, not the row's page as well.
expect(mockOpenUrl).toHaveBeenCalledTimes(1);
expect(mockOpenUrl).toHaveBeenCalledWith('https://github.com/acme/echo');
});