diff --git a/workspaces/adoption-insights/e2e-tests/utils/accessibility.ts b/workspaces/adoption-insights/e2e-tests/utils/accessibility.ts index d3fbdac317..c01a2a6d31 100644 --- a/workspaces/adoption-insights/e2e-tests/utils/accessibility.ts +++ b/workspaces/adoption-insights/e2e-tests/utils/accessibility.ts @@ -26,21 +26,13 @@ export async function runAccessibilityTests( .withTags(['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa']) .analyze(); - // Known violations filtered until fixed in UI; track in https://issues.redhat.com/browse/RHDHBUGS-2216 - const filteredViolations = accessibilityScanResults.violations.filter( - v => - ![ - 'aria-input-field-name', - 'button-name', - 'color-contrast', // MUI Tooltip default styling - 'svg-img-alt', // Recharts pie segments - ].includes(v.id), - ); - await testInfo.attach(attachName, { body: JSON.stringify(accessibilityScanResults, null, 2), contentType: 'application/json', }); - expect(filteredViolations, 'Accessibility violations found').toEqual([]); + expect( + accessibilityScanResults.violations, + 'Accessibility violations found', + ).toEqual([]); } diff --git a/workspaces/adoption-insights/plugins/adoption-insights/src/components/ActiveUsers/ActiveUsers.tsx b/workspaces/adoption-insights/plugins/adoption-insights/src/components/ActiveUsers/ActiveUsers.tsx index e66a920e9e..e3243a9947 100644 --- a/workspaces/adoption-insights/plugins/adoption-insights/src/components/ActiveUsers/ActiveUsers.tsx +++ b/workspaces/adoption-insights/plugins/adoption-insights/src/components/ActiveUsers/ActiveUsers.tsx @@ -112,6 +112,8 @@ const ActiveUsers = () => { data={data} margin={{ top: 10, right: 50, left: 20, bottom: 0 }} key={JSON.stringify(data.map(d => d))} + role="img" + aria-label={t('activeUsers.title')} > diff --git a/workspaces/adoption-insights/plugins/adoption-insights/src/components/CatalogEntities/CatalogEntities.tsx b/workspaces/adoption-insights/plugins/adoption-insights/src/components/CatalogEntities/CatalogEntities.tsx index 1470f99667..3eaf7caf79 100644 --- a/workspaces/adoption-insights/plugins/adoption-insights/src/components/CatalogEntities/CatalogEntities.tsx +++ b/workspaces/adoption-insights/plugins/adoption-insights/src/components/CatalogEntities/CatalogEntities.tsx @@ -215,7 +215,14 @@ const CatalogEntities = () => { }} > - + = () => { value={selectedOption} onChange={handleChange} renderValue={(selected: string) => getLabel(selected)} + inputProps={{ 'aria-label': t('header.dateRange.defaultLabel') }} sx={{ minWidth: 190, marginRight: '10px', diff --git a/workspaces/adoption-insights/plugins/adoption-insights/src/components/Techdocs/Techdocs.tsx b/workspaces/adoption-insights/plugins/adoption-insights/src/components/Techdocs/Techdocs.tsx index 21dc148be4..cb3cc2b23b 100644 --- a/workspaces/adoption-insights/plugins/adoption-insights/src/components/Techdocs/Techdocs.tsx +++ b/workspaces/adoption-insights/plugins/adoption-insights/src/components/Techdocs/Techdocs.tsx @@ -191,7 +191,14 @@ const Techdocs = () => { {techdoc?.name ? ( - + { minWidth: 0, }} > - + { }, }} > - + diff --git a/workspaces/adoption-insights/plugins/adoption-insights/src/components/Users/Users.tsx b/workspaces/adoption-insights/plugins/adoption-insights/src/components/Users/Users.tsx index 167666c93c..d8d7d649e8 100644 --- a/workspaces/adoption-insights/plugins/adoption-insights/src/components/Users/Users.tsx +++ b/workspaces/adoption-insights/plugins/adoption-insights/src/components/Users/Users.tsx @@ -112,7 +112,15 @@ const Users = () => { - +