From f59435f1cb6362d9565e2f7cd915112317047d23 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 1 Dec 2025 13:01:21 +0100 Subject: [PATCH] test(cypress): only check error and warning colors on blurred background Signed-off-by: Ferdinand Thiessen --- cypress/e2e/theming/a11y-color-contrast.cy.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cypress/e2e/theming/a11y-color-contrast.cy.ts b/cypress/e2e/theming/a11y-color-contrast.cy.ts index 5df0fcc4161..53796707b1c 100644 --- a/cypress/e2e/theming/a11y-color-contrast.cy.ts +++ b/cypress/e2e/theming/a11y-color-contrast.cy.ts @@ -66,7 +66,7 @@ const testCases = { 'color-primary-element-light-hover', ], }, - 'Servity information texts': { + 'Severity information texts': { foregroundColors: [ 'color-error-text', 'color-warning-text', @@ -76,6 +76,15 @@ const testCases = { backgroundColors: [ 'color-main-background', 'color-background-hover', + ], + }, + // only most important severity colors are supported on the blur + 'Severity information on blur': { + foregroundColors: [ + 'color-error-text', + 'color-success-text', + ], + backgroundColors: [ 'color-main-background-blur', ], },