From a5430138d55ab3cedc6707b71da23634a1fb073f Mon Sep 17 00:00:00 2001 From: Brian Love Date: Wed, 20 May 2026 08:45:56 -0700 Subject: [PATCH] test(c-subagents): delete legacy orphan e2e spec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `cockpit/chat/subagents/angular/e2e/subagents.spec.ts` is a pre-aimock-era spec that runs silently alongside `c-subagents.spec.ts` (testMatch: '**/*.spec.ts' picks both up). It: - Hardcodes `http://localhost:4505` bypassing Playwright's baseURL. - Tests stale DOM structure (Orchestrator/Research Agent/Analysis Agent/Summary Agent — names from an older cap shape). - Bypasses the harness (no aimock; would hit a real LLM if it ran). The aimock-backed `c-subagents.spec.ts` is the canonical coverage for this cap. Identified during the post-Task-#4 e2e audit. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../subagents/angular/e2e/subagents.spec.ts | 21 ------------------- 1 file changed, 21 deletions(-) delete mode 100644 cockpit/chat/subagents/angular/e2e/subagents.spec.ts diff --git a/cockpit/chat/subagents/angular/e2e/subagents.spec.ts b/cockpit/chat/subagents/angular/e2e/subagents.spec.ts deleted file mode 100644 index 5599ffd9..00000000 --- a/cockpit/chat/subagents/angular/e2e/subagents.spec.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { expect, test } from '@playwright/test'; - -test.describe('Chat Subagents Example', () => { - test.beforeEach(async ({ page }) => { - await page.goto('http://localhost:4505'); - await page.waitForSelector('app-subagents', { state: 'attached' }); - }); - - test('renders the chat interface with subagents sidebar', async ({ page }) => { - await expect(page.locator('chat')).toBeVisible(); - await expect(page.locator('aside')).toBeVisible(); - await expect(page.locator('aside h3')).toHaveText('Active Subagents'); - }); - - test('displays the agent pipeline', async ({ page }) => { - await expect(page.locator('aside')).toContainText('Orchestrator'); - await expect(page.locator('aside')).toContainText('Research Agent'); - await expect(page.locator('aside')).toContainText('Analysis Agent'); - await expect(page.locator('aside')).toContainText('Summary Agent'); - }); -});