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
test(e2e): make the hover contrast assertion actually measure hover
Sergey Kozyrenkoc479aec39075
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex d9f2140b..eed3ae6d 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -36,7 +36,7 @@ When adding new dependencies, ensure they use compatible licenses:./scripts/generate-licenses.sh```- This script automatically collects license information from all dependencies and saves them to the `licenses/` directory. See [licenses/README.md](../licenses/README.md) for details.+ This script automatically collects license information from all dependencies and saves them to the `licenses/` directory. See [licenses/README.md](licenses/README.md) for details.3. Scan for issues:```bashdiff --git a/frontend/.prettierignore b/frontend/.prettierignoredeleted file mode 100644index 8bbde193..00000000--- a/frontend/.prettierignore+++ /dev/null@@ -1,2 +0,0 @@-e2e/test-results/-e2e/playwright-report/diff --git a/frontend/docs/e2e.md b/frontend/docs/e2e.mdindex 4f4f440c..6e52688b 100644--- a/frontend/docs/e2e.md+++ b/frontend/docs/e2e.md@@ -116,8 +116,8 @@ with `--grep` / `--grep-invert` (e.g. `pnpm e2e --grep @smoke`):| `@smoke` | Sanity subset — auth, nav, the load-bearing happy paths || `@flows` | Flow list / detail / subscription / terminal specs || `@crud` | Create-read-update-delete journeys (knowledge, api tokens, templates) |-| `@coverage` | Surface coverage (dashboard, settings, resources, nav sweep) |-| `@cross` | Cross-cutting: themes, responsive, a11y |+| `@coverage` | Surface coverage (dashboard, settings, resources) |+| `@cross` | Cross-cutting: themes, responsive, a11y, contrast, route sweep || `@visual` | Screenshot baselines — runs only in the visual project || `@real` | Tier 2 — real backend + mock LLM (`specs/real/**`) || `@stand` | Tier 3 — LLM-independent smoke against a live stand |diff --git a/frontend/e2e/helpers/contrast.ts b/frontend/e2e/helpers/contrast.tsindex f10488e3..ed54da58 100644--- a/frontend/e2e/helpers/contrast.ts+++ b/frontend/e2e/helpers/contrast.ts@@ -19,6 +19,9 @@ export const mountContrastProbes = async (page: Page, probes: Record<string, strprobe.className = className;probe.dataset.contrast = name;+ // The variants carry `transition-colors`, so a measurement taken right after+ // hover() would sample a colour mid-interpolation, near the rest state.+ probe.style.transition = 'none';probe.textContent = 'Sample';host.append(probe);}diff --git a/frontend/e2e/routes.ts b/frontend/e2e/routes.tsindex c8664b50..a0766deb 100644--- a/frontend/e2e/routes.ts+++ b/frontend/e2e/routes.ts@@ -51,6 +51,7 @@ export const ROUTE_MANIFEST: RouteManifestEntry[] = ['src/pages/flows','src/features/flows','src/providers/flow-provider.tsx',+ 'src/providers/flows-provider.tsx',// Rendered inside the detail page's tabs alongside their owning routes.'src/components/shared/file-manager','src/components/dashboard',@@ -91,7 +92,7 @@ export const ROUTE_MANIFEST: RouteManifestEntry[] = [cassette: settingsProvidersCassette,path: routes.settings.providers,ready: (page) => page.getByText('No providers configured'),- sources: ['src/pages/settings/settings-providers.tsx', 'src/pages/settings/settings-provider.tsx'],+ sources: ['src/pages/settings/settings-providers.tsx'],},{cassette: resourcesCassette,diff --git a/frontend/e2e/specs/cross/contrast.spec.ts b/frontend/e2e/specs/cross/contrast.spec.tsindex 66dec30a..26eda8f2 100644--- a/frontend/e2e/specs/cross/contrast.spec.ts+++ b/frontend/e2e/specs/cross/contrast.spec.ts@@ -12,19 +12,20 @@ const EDITOR_TOKENS = {'editor-variable': 'template-variable',} as const;-const BADGE_VARIANTS = [- 'blue',- 'default',- 'destructive',- 'green',- 'orange',- 'outline',- 'pink',- 'purple',- 'red',- 'secondary',- 'yellow',-] as const satisfies readonly BadgeVariant[];+// Keyed off the union so a newly added variant fails to compile until it is probed.+const BADGE_VARIANTS = Object.keys({+ blue: true,+ default: true,+ destructive: true,+ green: true,+ orange: true,+ outline: true,+ pink: true,+ purple: true,+ red: true,+ secondary: true,+ yellow: true,+} satisfies Record<BadgeVariant, true>) as BadgeVariant[];const THEMES = ['light', 'dark'] as const;