feat: Add 'viewing as visitor' label #5697
Annotations
2 errors
Run tests:
src/layouts/Header/components/Navigator/Navigator.test.tsx#L231
TestingLibraryElementError: Unable to find an element with the text: not-codecov. 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="flex items-center space-x-2"
>
<div
class="max-w-[500px]"
>
<div
class="relative text-sm"
id="context-switcher"
>
<button
aria-expanded="false"
aria-haspopup="listbox"
class="\"relative flex gap-1 items-center text-xl font-semibold w-full rounded-md py-1.5 text-left text-gray-900 focus:outline-none\" undefined"
id="listbox-label"
type="button"
>
<div
class="size-6 rounded-full bg-ds-gray-tertiary motion-safe:animate-pulse"
/>
<p
class="ml-1"
>
codecov
</p>
<span
aria-hidden="true"
class="transition-transform rotate-0"
>
<svg
class="w-6 h-6"
data-icon=""
data-testid=""
fill="currentColor"
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg"
>
<path
clip-rule="evenodd"
d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z"
fill-rule="evenodd"
/>
</svg>
</span>
</button>
<ul
aria-labelledby="listbox-label"
class="absolute z-10 max-h-64 w-full overflow-y-auto rounded-md bg-ds-background shadow-md ring-1 ring-black ring-opacity-5 focus:outline-none dark:bg-ds-container dark:shadow-lg dark:ring-1 dark:ring-ds-gray-tertiary hidden"
role="listbox"
tabindex="-1"
>
<li
class="flex justify-between border-b border-ds-border-line px-4 py-3"
>
<a
class="
font-sans cursor-pointer
hover:underline
focus:ring-2
text-ds-blue-default inline-flex items-center gap-1"
data-cy="codecovAppInstallation"
data-marketing="codecovAppInstallation"
href="https://github.com/apps/codecov/installations/new"
target="_blank"
>
<svg
class="w-6 h-6"
data-icon=""
data-testid=""
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
/>
</svg>
Install Codecov GitHub app
<span
class="text-ds-gray-quinary"
>
<svg
class="w-4 h-4"
data-icon=""
data-testid=""
fill="none"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
/>
</svg>
</span>
</a>
</li>
<li
class="cursor-pointer select-none py-2 text-gray-900 hover:bg-ds-gray-secondary"
id="listbox-opti
|
Run tests
Process completed with exit code 1.
|
Loading