From 5bf887a570c9eff689a3ab38ebe7f28e8e950d1a Mon Sep 17 00:00:00 2001 From: Matteo <193476828+mzner@users.noreply.github.com> Date: Mon, 13 Jul 2026 05:50:03 +0000 Subject: [PATCH] Chore/fix e2e violation (#12526) * fix(e2e): resolve admin-settings general spec violations - prevent focusable elements inside hidden breadcrumb items - make OcDrop tippy role configurable, default to none - wait for logo-wrapper element after page reload in e2e * fix(e2e): resolve admin-settings groups spec violations - add aria-label to the icon-only groups filter-confirm button, which had no name for screen readers to announce - set reducedMotion on e2e browser contexts so notification fade-in animations don't race axe scans and produce false color-contrast failures - fix tippbBox selector typo (-> tippyBox) that made the scan on the group context menu throw instead of running - fix groupList and editPanel selectors in the shared selector map: groupList pointed at a nonexistent class, and editPanel used the non-standard :visible pseudo-selector which is invalid in native querySelectorAll * fix(e2e): skip tooltip fade transition under reduced motion Plain tooltips (v-oc-tooltip) use tippy.js's default fade animation and default #333/#fff colors, driven by tippy's own duration option rather than a CSS transition. Setting reducedMotion on the Playwright browser context does not stop this, since tippy's animation ignores prefers-reduced-motion on its own. Axe scans could catch the tooltip mid-fade, when the text is still low-opacity, and report a false color-contrast violation. Now the duration is forced to 0 when the media query matches, mirroring how oc-fade-in already handles this for CSS-driven animations. * fix(e2e): resolve officeSuites spec progressbar violation and test bugs - add aria-label to the global loading progress bar, which had no name - point the space quota progress bar at its existing text label via aria-labelledby instead of leaving it unnamed - fix a string-literal-instead-of-variable typo, an XPath selector that axe can't use (only CSS), and a scan that ran after clicking closed the element it was targeting, all in the public link test helpers - move the create-document-modal scan to after the modal actually opens, since it was scanning too early and finding nothing * fix(e2e): resolve app-store details spec contrast violation and scan bug - override md-editor-v3's default link and inline-code colors in the read-only markdown preview, which didn't meet WCAG AA contrast against the app card background - point the download-app a11y scan at the app list page instead of a details-page selector that isn't present on that page, a leftover from copying the sibling download-version helper * fix(e2e): resolve participantManagement pagination spec violations - patch vue-select to render aria-controls on its combobox toggle, which it already computed internally but never attached to the element with role="combobox" - add aria-label to the account menu quota bar and upload progress bar, both missing a name on their progressbar role, same gap fixed earlier in LoadingIndicator/SpaceQuota - add aria-label to the file-details preview-loading spinner, which rendered role="img" with an empty aria-label - stop scanning the sidebar actions panel in deleteResource after it was already closed, which made the scan throw instead of running * fix(e2e): add missing aria-label to hide-share quick action button The icon-only hide/unhide-share button in the shared-with-me table had a tooltip but no aria-label, so it had no accessible name. Reused the label already computed for the tooltip instead of duplicating it. * fix(e2e): fix sidebarPanel selector typo in downloadResources Used the string 'sidebarPanel', which isn't a key in the shared a11y selector map, so it fell through to being used as a literal (and broken) CSS selector. Switched to the existing appSidebar key, which resolves to the same #app-sidebar selector already used for this concept elsewhere. * fix(e2e): add accessible name to markdown editor's content area md-editor-v3's underlying CodeMirror instance renders its editable content div with role="textbox" but no accessible name, and the library exposes no prop to pass one through. Set aria-label on it directly after mount, since that's the only available hook. * fix(e2e): fix users-filter button label and navigate scan selector - add aria-label to the icon-only users search/filter-confirm button, the same button-name gap already fixed for the groups page - fix Users.navigate scanning appSidebar, which isn't rendered until a sidebar panel is actually opened; switched to scanning body, matching the working pattern already used by Groups.navigate * fix(e2e): fix global search dropdown ARIA structure and scan bugs - restructure the search results listbox so its direct children are valid group/option roles instead of plain nested
  • /