feat: add custom authn/authz (TT-1547) #396
Triggered via pull request
September 13, 2024 11:06
Status
Failure
Total duration
1m 40s
Artifacts
–
ci_pipeline.yml
on: pull_request
Run linter and tests
1m 7s
Deploy stage environment
0s
Annotations
2 errors
__tests__/components/Header.test.tsx > Header should have login button:
__tests__/components/Header.test.tsx#L16
TestingLibraryElementError: Unable to find an element with the text: Logg inn. 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>
<nav
class="flex z-40 w-full h-auto items-center justify-center data-[menu-open=true]:border-none sticky top-0 inset-x-0 backdrop-blur-lg data-[menu-open=true]:backdrop-blur-xl backdrop-saturate-150 bg-background/70"
style="--navbar-height: 4rem;"
>
<header
class="z-40 flex px-6 gap-4 w-full flex-row relative flex-nowrap items-center justify-between h-[var(--navbar-height)] max-w-[1280px]"
>
<div
class="flex basis-0 flex-row flex-grow flex-nowrap justify-start bg-transparent items-center no-underline text-medium whitespace-nowrap box-border"
>
<a
class="relative inline-flex items-center tap-highlight-transparent outline-none data-[focus-visible=true]:z-10 data-[focus-visible=true]:outline-2 data-[focus-visible=true]:outline-focus data-[focus-visible=true]:outline-offset-2 text-foreground no-underline hover:opacity-80 active:opacity-disabled transition-opacity font-bold text-2xl hover:cursor-pointer"
role="link"
tabindex="0"
>
<img
alt="Hugin logo"
class="mr-2"
data-nimg="1"
decoding="async"
height="45"
loading="lazy"
src="/hugin/hugin.svg"
style="color: transparent;"
width="45"
/>
Hugin
</a>
</div>
<ul
class="flex gap-4 h-full flex-row flex-nowrap items-center data-[justify=start]:justify-start data-[justify=start]:flex-grow data-[justify=start]:basis-0 data-[justify=center]:justify-center data-[justify=end]:justify-end data-[justify=end]:flex-grow data-[justify=end]:basis-0"
data-justify="end"
>
<li
class="text-medium whitespace-nowrap box-border list-none data-[active=true]:font-semibold lg:flex"
/>
</ul>
</header>
</nav>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ __tests__/components/Header.test.tsx:16:17
|
Run linter and tests
Process completed with exit code 1.
|