From 26189c65e0c03e8346707f4d859cd4211fe70fe6 Mon Sep 17 00:00:00 2001 From: Sergey Kozyrenko Date: Tue, 21 Jul 2026 14:23:46 +0700 Subject: [PATCH] refactor(e2e): drop the contrast helper commentary Co-Authored-By: Claude Fable 5 --- frontend/e2e/helpers/contrast.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/frontend/e2e/helpers/contrast.ts b/frontend/e2e/helpers/contrast.ts index e3327e0c..56491e42 100644 --- a/frontend/e2e/helpers/contrast.ts +++ b/frontend/e2e/helpers/contrast.ts @@ -1,16 +1,9 @@ import type { Page } from '@playwright/test'; -/** Badge and button labels are 12–13px, so the 3:1 large-text allowance never applies. */ export const AA_NORMAL = 4.5; const HOST_ID = 'contrast-probes'; -/** - * Paints one sample per class string on a card-coloured surface, on top of the - * page so each probe is hoverable. Class strings come from the component's own - * cva, so a palette edit changes what is measured — a probe list copied into the - * spec would only ever re-test itself. - */ export const mountContrastProbes = async (page: Page, probes: Record): Promise => { await page.evaluate( ({ entries, hostId }) => { @@ -36,13 +29,6 @@ export const mountContrastProbes = async (page: Page, probes: Record => page.evaluate((name) => { const element = document.querySelector(`[data-contrast="${name}"]`); @@ -66,8 +52,6 @@ export const measureContrast = async (page: Page, probe: string): Promise