🩹 Don't run active impersonate user call if we're in prod #1298
Annotations
2 errors and 1 warning
Check coverage:
src/organisms/TopBar/Account/Account.jsdom.test.tsx#L69
TestingLibraryElementError: Unable to find an element with the text: Impersonating. 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="sc-kwqKDc fOLkcL"
>
<button
class="sc-kUBTxK iLpPpK"
>
<div
class="sc-cGjkqA fGJPVO"
data-testid="avatar-wrapper"
>
<div
class="Avatar__StyledAvatar-sc-r7n7on-0 gFhRFC"
>
<img
alt="user-avatar-Mock mocksnes"
class="Avatar__StyledImage-sc-r7n7on-1 DVqps"
src="https://avatars.githubusercontent.com/u/97165289"
/>
</div>
</div>
</button>
</div>
<div
class="Menu__StyledPopover-sc-1vlnqcj-1 bdDypD"
data-floating-ui-focusable=""
popover="manual"
style="position: absolute; top: 4px; left: 8px;"
tabindex="-1"
>
<div
class="Paper__StyledPaper-sc-6ncnv9-0 GeJMN Menu__MenuPaper-sc-1vlnqcj-0 etWbDE sc-jZCRgm fskfwC"
>
<div
class="MenuList__List-sc-104rzof-0 kutvAb"
data-testid="top-bar-menu"
role="menu"
>
<div
class="sc-bJnufD ggBYuz"
index="0"
>
<div
class="sc-cGjkqA cVNNAS"
data-testid="avatar-wrapper"
>
<div
class="Avatar__StyledAvatar-sc-r7n7on-0 gFhRFC"
>
<img
alt="user-avatar-Mock mocksnes"
class="Avatar__StyledImage-sc-r7n7on-1 DVqps"
src="https://avatars.githubusercontent.com/u/97165289"
/>
</div>
</div>
<div
class="sc-dwlElg eVgGqd"
>
<h6
class="Typography__StyledTypography-sc-179guof-0 dZGWpu"
>
Mock mocksnes
</h6>
<p
class="Typography__StyledTypography-sc-179guof-0 iwbevx"
>
[email protected]
</p>
</div>
<section
class="sc-fAsOrV hlMNfc"
>
<div
class="Chip__StyledChips-sc-wzsllq-0 kVwmef sc-bFVjpq gliOSk"
>
admin
</div>
</section>
</div>
<div
class="sc-dKctwf hrjXfT"
index="1"
>
<button
class="Button__ButtonBase-sc-1hs0myn-1 MFcdb"
tabindex="0"
type="button"
>
<span
class="Button__Inner-sc-1hs0myn-0 ufANi"
>
<svg
aria-hidden="true"
class="Icon__StyledSvg-sc-6evbi1-0 jyZItD"
fill="currentColor"
height="24px"
viewBox="0 0 24 24"
width="24px"
xmlns="http://www.w3.org/2000/svg"
>
<path
class="Icon__StyledPath-sc-6evbi1-1"
clip-rule="evenodd"
d="M5.988 20h7.95v2h-7.95A2 2 0 0 1 4 20V4a2 2 0 0 1 1.988-2h7.95v2h-7.95zm8.745-2.7-1.49-1.4 2.955-2.9h-6.83v-2h6.856l-2.982-3 1.391-1.4L20 12z"
data-testid="eds-icon-path"
fill-rule="evenodd"
/>
</svg>
Log out
</span>
</button>
</div>
</div>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<body>
<div>
<div
class="sc-kwqKDc fOLkcL"
>
<button
class="sc-kUBTxK iLpPpK"
>
<div
class="sc-cGjkqA fGJPVO"
data-testid="avatar-wrapper"
>
<div
class="Avatar__StyledAvatar-sc-r7n7on-0 gF
|
Check coverage
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading