STCOR-753: Accessibility Issues - core components - Include label tex… #1437
GitHub Actions / Jest Unit Test Results
failed
Nov 1, 2023 in 0s
1 fail, 126 pass in 19s
Annotations
github-actions / Jest Unit Test Results
ProfileDropdown should display current consortium (if enabled) in the dropdown trigger (ProfileDropdown should display current consortium (if enabled) in the dropdown trigger) failed
artifacts/jest-junit/junit.xml
Raw output
TestingLibraryElementError: Unable to find an element with the text: Central office. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<div
class="dropdown relative"
id="profileDropdown"
>
<button
aria-expanded="false"
aria-haspopup="true"
aria-label="stripes-core.mainnav.myProfileAriaLabel"
class="navButton button"
>
<span
class="inner isInteractive"
>
<span
class="icon"
>
<div
class="avatar avatar"
data-test-avatar="true"
>
<svg
class="placeholder"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M8.2 19.4c-1.1.4-2.1.7-3.2 1.1-1.2.4-2.3.9-3.4 1.5-.2.1-.3.2-.5.3-.5.3-.7.8-.8 1.3v.3h23.2v-.4c0-.4-.2-.8-.5-1-.5-.4-1.1-.8-1.7-1.1-1.6-.8-3.2-1.3-4.9-1.9-.3-.1-.6-.2-.9-.4-.3-.2-.5-.4-.5-.8-.1-.5 0-1.1 0-1.6 0-.4.1-.8.4-1.1.6-.7.8-1.6 1-2.5.1-.4.2-.8.4-1.1.3-.6.5-1.3.5-1.9v-.5c-.3-.7-.1-1.2 0-1.9s.1-1.4-.2-2.1C16.3 4 14.9 3 12.9 2.7c-1.2-.2-2.4.1-2.7.2-1.9.6-3.1 1.8-3.5 3.7-.1.5 0 1 0 1.5 0 .3.1.6.1.8 0 .3 0 .6-.1.8-.1.2-.1.5-.1.7.1.7.3 1.3.6 1.9.2.4.2.8.3 1.2.2.8.4 1.7 1 2.3.4.4.5.7.5 1v1.5c0 .5-.2.9-.8 1.1z"
/>
</svg>
</div>
</span>
<span
class="label"
>
<span
class="button__label"
>
stripes-core.mainnav.myProfileAriaLabel
</span>
<span>
Icon
</span>
</span>
</span>
</button>
<div
style="display: none;"
>
<div
class="DropdownMenu"
style="left: 0px; display: none;"
>
<div>
<div
class="header"
>
stripes-core.loggedInAs
<br />
stripes-core.currentServicePointNotSelected
</div>
<hr
class="divider"
/>
<nav
class="navListSectionControl"
data-test-nav-list="true"
>
<div
class="root"
data-test-nav-list-section="true"
>
<div
class="content"
>
<button
class="NavListItem"
data-test-nav-list-item="true"
id="test-app-clickable-menuItem0"
type="button"
>
Profile dropdown action
</button>
<button
class="NavListItem"
data-test-nav-list-item="true"
id="clickable-logout"
type="button"
>
stripes-core.logout
</button>
</div>
</div>
</nav>
</div>
</div>
</div>
</div>
</div>
</body>
at Object.getElementError (/home/runner/work/stripes-core/stripes-core/node_modules/@testing-library/dom/dist/config.js:37:19)
at /home/runner/work/stripes-core/stripes-core/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at /home/runner/work/stripes-core/stripes-core/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at /home/runner/work/stripes-core/stripes-core/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByText (/home/runner/work/stripes-core/stripes-core/src/components/MainNav/ProfileDropdown/ProfileDropdown.test.js:74:19)
at Promise.then.completed (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:316:40)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at _runTest (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:121:9)
at run (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/home/runner/work/stripes-core/stripes-core/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/home/runner/work/stripes-core/stripes-core/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/home/runner/work/stripes-core/stripes-core/node_modules/jest-runner/build/runTest.js:444:34)
at Object.worker (/home/runner/work/stripes-core/stripes-core/node_modules/jest-runner/build/testWorker.js:106:12)
Loading