Merge pull request #56770 from nextcloud/test/cypress-a11y

test(cypress): only check error and warning colors on blurred background
pull/56410/head
Ferdinand Thiessen 1 month ago committed by GitHub
commit e89a8d832c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 11
      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',
],
},

Loading…
Cancel
Save