Skip to content

Commit f59435f

Browse files
committed
test(cypress): only check error and warning colors on blurred background
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 51a49b5 commit f59435f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cypress/e2e/theming/a11y-color-contrast.cy.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const testCases = {
6666
'color-primary-element-light-hover',
6767
],
6868
},
69-
'Servity information texts': {
69+
'Severity information texts': {
7070
foregroundColors: [
7171
'color-error-text',
7272
'color-warning-text',
@@ -76,6 +76,15 @@ const testCases = {
7676
backgroundColors: [
7777
'color-main-background',
7878
'color-background-hover',
79+
],
80+
},
81+
// only most important severity colors are supported on the blur
82+
'Severity information on blur': {
83+
foregroundColors: [
84+
'color-error-text',
85+
'color-success-text',
86+
],
87+
backgroundColors: [
7988
'color-main-background-blur',
8089
],
8190
},

0 commit comments

Comments
 (0)