Feat/average rating #435
Triggered via pull request
November 24, 2026 11:21
Status
Failure
Total duration
2m 32s
Artifacts
–
Annotations
2 errors
|
test/components/Pagination.test.tsx > Pagination > viser hvilken side man er på, med norsk tallformat:
frontend/test/components/Pagination.test.tsx#L34
TestingLibraryElementError: Unable to find an element with the text: /side 3 av 6\s004/. 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
aria-label="Sider"
class="pagination"
>
<span
class="pagination__back"
>
<button
class="text-button"
type="button"
>
« første
</button>
<button
class="text-button"
type="button"
>
← forrige
</button>
</span>
<form
class="pagination__info"
>
<label
for="pagination-page"
>
side
</label>
<input
aria-describedby="pagination-total"
class="pagination__input"
id="pagination-page"
max="6004"
min="1"
name="page"
type="number"
value="3"
/>
<span
id="pagination-total"
>
av
6 004
</span>
</form>
<button
class="text-button"
type="button"
>
neste →
</button>
</nav>
<div
data-state="null"
data-testid="location"
>
/
</div>
</div>
</body>
❯ Object.getElementError ../node_modules/.pnpm/@testing-library+dom@10.4.2/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../node_modules/.pnpm/@testing-library+dom@10.4.2/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../node_modules/.pnpm/@testing-library+dom@10.4.2/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ ../node_modules/.pnpm/@testing-library+dom@10.4.2/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ test/components/Pagination.test.tsx:34:19
|
|
check-and-deploy
Process completed with exit code 1.
|