Fully autonomous AI Agents system capable of performing complex penetration testing tasks
Go ai-agentsai-security-toolanthropicautonomous-agentsgolanggptgraphqlmulti-agent-systemoffensive-securityopen-sourceopenaipenetration-testingpenetration-testing-toolsreactsecurity-automationsecurity-testingsecurity-toolsself-hosted
fix(e2e): locate dashboard cards by data-slot, not an uncommitted test id
Sergey Kozyrenko7ff38f2da610
diff --git a/frontend/e2e/specs/dashboard/dashboard.spec.ts b/frontend/e2e/specs/dashboard/dashboard.spec.tsindex 50de3b5a..2956ccd6 100644--- a/frontend/e2e/specs/dashboard/dashboard.spec.ts+++ b/frontend/e2e/specs/dashboard/dashboard.spec.ts@@ -7,7 +7,7 @@ import { dashboardCassette } from '../../mocks/cassettes/dashboard.ts';const CHART_TITLES = ['Flows Activity Over Time', 'Tool Calls Over Time', 'Token Usage Over Time', 'Cost Over Time'];const cardWith = (page: Page, heading: string) =>- page.getByTestId('dashboard-card').filter({ has: page.getByRole('heading', { exact: true, name: heading }) });+ page.locator('[data-slot="card"]', { has: page.getByRole('heading', { exact: true, name: heading }) });test.describe('dashboard', { tag: '@coverage' }, () => {test.describe('happy path', () => {diff --git a/frontend/e2e/specs/flows/messages.spec.ts b/frontend/e2e/specs/flows/messages.spec.tsindex 84931185..007ac6f5 100644--- a/frontend/e2e/specs/flows/messages.spec.ts+++ b/frontend/e2e/specs/flows/messages.spec.ts@@ -2,13 +2,18 @@ import { expect, test } from '../../fixtures/test.ts';import { expectCleanPage } from '../../helpers/errors.ts';import { variedMessagesCassette } from '../../mocks/cassettes/flows.ts';+type XtermHost = {+ xterm?: { buffer: { active: { getLine: (row: number) => undefined | XtermLine; length: number } } };+};+type XtermLine = { translateToString: (trim: boolean) => string };+// The page has more than one xterm (the right-panel Terminal tab + the// message-level Terminal renderer); read every buffer and match any.const anyTerminalContains = (marker: string): boolean => {const hosts = document.querySelectorAll('.xterm');return Array.from(hosts).some((el) => {- const terminal = (el.parentElement as { xterm?: { buffer: { active: { getLine: (n: number) => { translateToString: (t: boolean) => string } | undefined; length: number } } } } | null)?.xterm;+ const terminal = (el.parentElement as null | XtermHost)?.xterm;if (!terminal) {return false;