Skip to content

Update frontend/resourceadm/pages/PageLayout/ResourceadmHeader/Resour… #16867

Update frontend/resourceadm/pages/PageLayout/ResourceadmHeader/Resour…

Update frontend/resourceadm/pages/PageLayout/ResourceadmHeader/Resour… #16867

Triggered via push September 5, 2024 15:04
Status Failure
Total duration 8m 55s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

4 errors
ResourceadmHeader › should render the user name as the profile button when in self context: frontend/resourceadm/pages/PageLayout/ResourceadmHeader/ResourceadmHeader.test.tsx#L62
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Tester Testersen" Here are the accessible roles: banner: Name "": <div class="studioPageHeader" role="banner" /> -------------------------------------------------- link: Name "Altinn logo": <a class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularDark studioButton small" href="/" type="button" /> -------------------------------------------------- img: Name "Altinn logo": <svg fill="none" height="30" role="img" width="30" xmlns="http://www.w3.org/2000/svg" /> Name "": <svg class="avatar" fill="none" focusable="false" height="1em" role="img" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg" /> -------------------------------------------------- button: Name "[mockedText(shared.header_user_for_org, {"user":"Tester Testersen"})]": <button aria-expanded="false" aria-haspopup="menu" aria-label="[mockedText(shared.header_user_for_org, {\"user\":\"Tester Testersen\"})]" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularDark studioButton" title="[mockedText(shared.header_user_for_org, {\"user\":\"Tester Testersen\"})]" type="button" /> Name "[mockedText(sync_header.fetch_changes)]": <button aria-expanded="false" aria-label="[mockedText(sync_header.fetch_changes)]" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularLight studioButton small" id=":r4:" type="button" /> Name "[mockedText(sync_header.changes_to_share)]": <button aria-label="[mockedText(sync_header.changes_to_share)]" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularLight studioButton small" disabled="" title="[mockedText(sync_header.sharing_changes_no_access)]" type="button" /> Name "[mockedText(sync_header.gitea_menu)]": <button aria-expanded="false" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first fds-btn--icon-only button regularLight studioButton small" id=":re:" title="[mockedText(sync_header.gitea_menu)]" type="button" /> -------------------------------------------------- Ignored nodes: comments, script, style <body> <div> <div class="Toastify" /> <div class="studioPageHeader" role="banner" > <div class="main regular" > <div class="wrapper" > <a class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularDark studioButton small" href="/" type="button" > <svg fill="none" height="30" role="img" width="30" xmlns="http://www.w3.org/2000/svg" > <title> Altinn logo </title> <path d="M14.9512 0H0.590024C0.25961 0 0 0.259054 0 0.588759V28.5312C0 28.8609 0.25961 29.12 0.590024 29.12H14.9512C22.8457 28.9434 29.1826 22.4906 29.1826 14.5541C29.1826 6.62942 22.8339 0.176628 14.9512 0ZM16.3437 24.7632C9.23977 25.9289 3.20973 19.9 4.36618 12.8114C5.0742 8.51345 8.54354 5.05155 12.8389 4.35681C19.9546 3.20285 25.9846 9.21996 24.8282 16.3204C24.1202 20.6066 20.6508 24.0685 16.3437 24.7632Z" fill="white" /> </svg> </a> </div> <div> <button aria-expanded="false" aria-haspopup="menu" aria-label="[mockedText(shared.header_user_for_org, {\"user\":\"Tester Testersen\"})]" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularDark studioButton" title="[mockedText(shared.header_user_for_org, {\"user\":\"Tester Testersen\"})]" type="button" > <span class="userOrgName
ResourceadmHeader › should show the profile menu with all its menuitem when the avatar is clicked: frontend/resourceadm/pages/PageLayout/ResourceadmHeader/ResourceadmHeader.test.tsx#L73
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Tester Testersen" Here are the accessible roles: banner: Name "": <div class="studioPageHeader" role="banner" /> -------------------------------------------------- link: Name "Altinn logo": <a class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularDark studioButton small" href="/" type="button" /> -------------------------------------------------- img: Name "Altinn logo": <svg fill="none" height="30" role="img" width="30" xmlns="http://www.w3.org/2000/svg" /> Name "": <svg class="avatar" fill="none" focusable="false" height="1em" role="img" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg" /> -------------------------------------------------- button: Name "[mockedText(shared.header_user_for_org, {"user":"Tester Testersen"})]": <button aria-expanded="false" aria-haspopup="menu" aria-label="[mockedText(shared.header_user_for_org, {\"user\":\"Tester Testersen\"})]" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularDark studioButton" title="[mockedText(shared.header_user_for_org, {\"user\":\"Tester Testersen\"})]" type="button" /> Name "[mockedText(sync_header.fetch_changes)]": <button aria-expanded="false" aria-label="[mockedText(sync_header.fetch_changes)]" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularLight studioButton small" id=":rm:" type="button" /> Name "[mockedText(sync_header.changes_to_share)]": <button aria-label="[mockedText(sync_header.changes_to_share)]" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularLight studioButton small" disabled="" title="[mockedText(sync_header.sharing_changes_no_access)]" type="button" /> Name "[mockedText(sync_header.gitea_menu)]": <button aria-expanded="false" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first fds-btn--icon-only button regularLight studioButton small" id=":r10:" title="[mockedText(sync_header.gitea_menu)]" type="button" /> -------------------------------------------------- Ignored nodes: comments, script, style <body> <div> <div class="Toastify" /> <div class="studioPageHeader" role="banner" > <div class="main regular" > <div class="wrapper" > <a class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularDark studioButton small" href="/" type="button" > <svg fill="none" height="30" role="img" width="30" xmlns="http://www.w3.org/2000/svg" > <title> Altinn logo </title> <path d="M14.9512 0H0.590024C0.25961 0 0 0.259054 0 0.588759V28.5312C0 28.8609 0.25961 29.12 0.590024 29.12H14.9512C22.8457 28.9434 29.1826 22.4906 29.1826 14.5541C29.1826 6.62942 22.8339 0.176628 14.9512 0ZM16.3437 24.7632C9.23977 25.9289 3.20973 19.9 4.36618 12.8114C5.0742 8.51345 8.54354 5.05155 12.8389 4.35681C19.9546 3.20285 25.9846 9.21996 24.8282 16.3204C24.1202 20.6066 20.6508 24.0685 16.3437 24.7632Z" fill="white" /> </svg> </a> </div> <div> <button aria-expanded="false" aria-haspopup="menu" aria-label="[mockedText(shared.header_user_for_org, {\"user\":\"Tester Testersen\"})]" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularDark studioButton" title="[mockedText(shared.header_user_for_org, {\"user\":\"Tester Testersen\"})]" type="button" > <span class="userOrgNam
ResourceadmHeader › should navigate to the correct organization context when an org is selected: frontend/resourceadm/pages/PageLayout/ResourceadmHeader/ResourceadmHeader.test.tsx#L103
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Tester Testersen" Here are the accessible roles: banner: Name "": <div class="studioPageHeader" role="banner" /> -------------------------------------------------- link: Name "Altinn logo": <a class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularDark studioButton small" href="/" type="button" /> -------------------------------------------------- img: Name "Altinn logo": <svg fill="none" height="30" role="img" width="30" xmlns="http://www.w3.org/2000/svg" /> Name "": <svg class="avatar" fill="none" focusable="false" height="1em" role="img" viewBox="0 0 24 24" width="1em" xmlns="http://www.w3.org/2000/svg" /> -------------------------------------------------- button: Name "[mockedText(shared.header_user_for_org, {"user":"Tester Testersen"})]": <button aria-expanded="false" aria-haspopup="menu" aria-label="[mockedText(shared.header_user_for_org, {\"user\":\"Tester Testersen\"})]" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularDark studioButton" title="[mockedText(shared.header_user_for_org, {\"user\":\"Tester Testersen\"})]" type="button" /> Name "[mockedText(sync_header.fetch_changes)]": <button aria-expanded="false" aria-label="[mockedText(sync_header.fetch_changes)]" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularLight studioButton small" id=":r18:" type="button" /> Name "[mockedText(sync_header.changes_to_share)]": <button aria-label="[mockedText(sync_header.changes_to_share)]" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularLight studioButton small" disabled="" title="[mockedText(sync_header.sharing_changes_no_access)]" type="button" /> Name "[mockedText(sync_header.gitea_menu)]": <button aria-expanded="false" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first fds-btn--icon-only button regularLight studioButton small" id=":r1i:" title="[mockedText(sync_header.gitea_menu)]" type="button" /> -------------------------------------------------- Ignored nodes: comments, script, style <body> <div> <div class="Toastify" /> <div class="studioPageHeader" role="banner" > <div class="main regular" > <div class="wrapper" > <a class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularDark studioButton small" href="/" type="button" > <svg fill="none" height="30" role="img" width="30" xmlns="http://www.w3.org/2000/svg" > <title> Altinn logo </title> <path d="M14.9512 0H0.590024C0.25961 0 0 0.259054 0 0.588759V28.5312C0 28.8609 0.25961 29.12 0.590024 29.12H14.9512C22.8457 28.9434 29.1826 22.4906 29.1826 14.5541C29.1826 6.62942 22.8339 0.176628 14.9512 0ZM16.3437 24.7632C9.23977 25.9289 3.20973 19.9 4.36618 12.8114C5.0742 8.51345 8.54354 5.05155 12.8389 4.35681C19.9546 3.20285 25.9846 9.21996 24.8282 16.3204C24.1202 20.6066 20.6508 24.0685 16.3437 24.7632Z" fill="white" /> </svg> </a> </div> <div> <button aria-expanded="false" aria-haspopup="menu" aria-label="[mockedText(shared.header_user_for_org, {\"user\":\"Tester Testersen\"})]" class="fds-btn fds-focus fds-btn--sm fds-btn--primary fds-btn--first button regularDark studioButton" title="[mockedText(shared.header_user_for_org, {\"user\":\"Tester Testersen\"})]" type="button" > <span class="userOrgNa
Testing
Process completed with exit code 1.