E2E Defect: contrast.spec.ts:105:7 button text has sufficient contrast in light theme #45

Open
opened 2026-02-14 02:03:52 +00:00 by santhoshj · 0 comments
Owner

Automated regression reported this failure from Playwright artifacts.

Defect Details

  • Case key: contrast.spec.ts:105:7 button text has sufficient contrast in light theme
  • Suite: capabilities\accessibility\contrast.spec.ts
  • Test: Color Contrast Across Themes › button text has sufficient contrast in light theme
  • Failure frequency: 7

Error Message

[desktop-chrome] › capabilities\accessibility\contrast.spec.ts:105:7 › Color Contrast Across Themes › button text has sufficient contrast in light theme       Error: Contrast ratio 3.51 is below required 4.5 (color: rgb(248, 250, 252), background: rgba(92, 124, 250, 0.2))         at fixtures\accessibility.ts:148        146 |       147 | 	if (ratio < minRatio) {     > 148 | 		throw new Error(           | 		      ^       149 | 			`Contrast ratio ${ratio.toFixed(2)} is below required ${minRatio} ` +       150 | 				`(color: ${colors.color}, background: ${colors.backgroundColor})`,       151 | 		);         at assertContrast (C:\dev\claws\e2e\tests\fixtures\accessibility.ts:148:9)

Evidence (Screenshots/Error Context)

  • e2e/test-results/capabilities-accessibility-1d946-ent-contrast-in-light-theme-desktop-chrome\test-failed-1.png
  • e2e/test-results/capabilities-accessibility-1d946-ent-contrast-in-light-theme-desktop-chrome\error-context.md

Root Cause Analysis

Likely selector stability, timing, or focus-management regression; needs targeted triage.

Automated regression reported this failure from Playwright artifacts. ## Defect Details - Case key: `contrast.spec.ts:105:7 button text has sufficient contrast in light theme` - Suite: `capabilities\accessibility\contrast.spec.ts` - Test: `Color Contrast Across Themes › button text has sufficient contrast in light theme` - Failure frequency: 7 ## Error Message ```text [desktop-chrome] › capabilities\accessibility\contrast.spec.ts:105:7 › Color Contrast Across Themes › button text has sufficient contrast in light theme Error: Contrast ratio 3.51 is below required 4.5 (color: rgb(248, 250, 252), background: rgba(92, 124, 250, 0.2)) at fixtures\accessibility.ts:148 146 | 147 | if (ratio < minRatio) { > 148 | throw new Error( | ^ 149 | `Contrast ratio ${ratio.toFixed(2)} is below required ${minRatio} ` + 150 | `(color: ${colors.color}, background: ${colors.backgroundColor})`, 151 | ); at assertContrast (C:\dev\claws\e2e\tests\fixtures\accessibility.ts:148:9) ``` ## Evidence (Screenshots/Error Context) - `e2e/test-results/capabilities-accessibility-1d946-ent-contrast-in-light-theme-desktop-chrome\test-failed-1.png` - `e2e/test-results/capabilities-accessibility-1d946-ent-contrast-in-light-theme-desktop-chrome\error-context.md` ## Root Cause Analysis Likely selector stability, timing, or focus-management regression; needs targeted triage.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: santhoshj/clawfort#45