diff --git a/static/app/utils/replays/hooks/mockA11yData.tsx b/static/app/utils/replays/hooks/mockA11yData.tsx new file mode 100644 index 0000000000000..db32388fb8655 --- /dev/null +++ b/static/app/utils/replays/hooks/mockA11yData.tsx @@ -0,0 +1,1043 @@ +export const MOCK_A11Y_DATA = [ + { + id: 'button-name', + impact: 'critical', + description: 'Buttons must have discernible text', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/button-name?application=playwright', + element: + '', + failureSummary: + 'Fix any of the following:\n Element does not have inner text that is visible to screen readers\n aria-label attribute does not exist or is empty\n aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty\n Element has no title attribute\n Element\'s default semantics were not overridden with role="none" or role="presentation"', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '**** *********', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.54 (foreground color: #9481a3, background color: #ffffff, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '********* *****', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.54 (foreground color: #9481a3, background color: #ffffff, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '*** ** ***********', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.54 (foreground color: #9481a3, background color: #ffffff, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '*** ** *********', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.54 (foreground color: #9481a3, background color: #ffffff, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '*** ** *****', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.54 (foreground color: #9481a3, background color: #ffffff, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '*** *******', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.54 (foreground color: #9481a3, background color: #ffffff, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '******** *****', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.54 (foreground color: #9481a3, background color: #ffffff, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '*** *********** ****', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.54 (foreground color: #9481a3, background color: #ffffff, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '********* ****', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.54 (foreground color: #9481a3, background color: #ffffff, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '**** ********', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.54 (foreground color: #9481a3, background color: #ffffff, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '****** *** ****', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.54 (foreground color: #9481a3, background color: #ffffff, font size: 10.5pt (14px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '******* *********', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.62 (foreground color: #e1557c, background color: #ffffff, font size: 11.4pt (15.2px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '* *** ****************** ** *** ** ******* ****', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 2.99 (foreground color: #77658b, background color: #251f3d, font size: 11.3pt (15px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '* ** ************ *** *********** ***********', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 2.99 (foreground color: #77658b, background color: #251f3d, font size: 11.3pt (15px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '* ** ********* ********* **** ***** ** ***********', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 2.99 (foreground color: #77658b, background color: #251f3d, font size: 11.3pt (15px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: '* ***', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 2.99 (foreground color: #77658b, background color: #251f3d, font size: 11.3pt (15px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '******* ** **** ** **** ****', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.44 (foreground color: #e1557c, background color: #faf8ff, font size: 9.7pt (12.92px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '********** ** ****', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.44 (foreground color: #e1557c, background color: #faf8ff, font size: 9.7pt (12.92px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'color-contrast', + impact: 'serious', + description: 'Elements must meet minimum color contrast ratio thresholds', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/color-contrast?application=playwright', + element: + '****** * *******', + failureSummary: + 'Fix any of the following:\n Element has insufficient color contrast of 3.44 (foreground color: #e1557c, background color: #faf8ff, font size: 9.7pt (12.92px), font weight: normal). Expected contrast ratio of 4.5:1', + }, + { + id: 'duplicate-id-active', + impact: 'serious', + description: 'IDs of active elements must be unique', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/duplicate-id-active?application=playwright', + element: + '*******', + failureSummary: + 'Fix any of the following:\n Document has active elements with the same id attribute: nd-platforms', + }, + { + id: 'duplicate-id', + impact: 'minor', + description: 'id attribute value must be unique', + helpUrl: + 'https://dequeuniversity.com/rules/axe/4.7/duplicate-id?application=playwright', + element: '