Display docunit summary in category importer #15636
Annotations
3 errors and 1 warning
Run tests:
frontend/test/components/category-import/categoryImport.spec.ts#L113
TestingLibraryElementError: Unable to find an element with the text: AG Aachen. 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
data-testid="category-import"
>
<span
class="ds-label-01-bold"
>
Rubriken importieren
</span>
<div
class="mt-16 flex flex-row items-end gap-8"
>
<div
class="flex-start flex w-full gap-4 flex-col"
>
<div
class="flex flex-row items-center"
data-testid="label-wrapper"
>
<label
class="grid items-center ds-label-02-reg"
for="categoryImporterDocumentNumber"
>
<span>
Dokumentnummer
</span>
</label>
</div>
<div
class="flex flex-row items-center"
>
<input
aria-label="Dokumentnummer Eingabefeld"
class="ds-input ds-input-medium"
data-testid=""
id="categoryImporterDocumentNumber"
tabindex="0"
type="text"
/>
</div>
</div>
<div
class="w-max"
data-testid=""
data-v-1ee8e33a=""
>
<button
aria-label="Dokumentationseinheit laden"
class="ds-button ds-button-medium ds-button-primary ds-button-with-icon ds-button-with-icon-only"
data-v-1ee8e33a=""
href="about:blank"
>
<svg
class="ds-button-icon"
height="1.34em"
viewBox="0 0 24 24"
width="1.34em"
>
<path
d="M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5A6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5S14 7.01 14 9.5S11.99 14 9.5 14"
fill="currentColor"
/>
</svg>
</button>
</div>
</div>
<div
class="ds-label-01-reg mt-24 flex flex-col gap-16 bg-blue-100 p-16"
>
<span>
AG Aachen, 01.02.2022, file-123
<div
class="ds-label-02-reg w-[fit-content] rounded-full px-4 py-2 bg-blue-300 ml-4 inline-block"
>
<span
class="mx-2 align-middle"
>
Unveröffentlicht
</span>
</div>
<span
class="ds-label-01-reg ml-8 mr-8"
>
|
</span>
<a
class="nowrap ds-link-01-bold border-b-2 border-blue-800 leading-24 no-underline focus:outline-none focus-visible:outline-4 focus-visible:outline-offset-4 focus-visible:outline-blue-800"
href="/caselaw/documentUnit/XXRE123456789/preview"
tabindex="-1"
target="_blank"
>
XXRE123456789
<svg
class="mb-4 inline w-24"
height="1.34em"
viewBox="0 0 24 24"
width="1.34em"
>
<path
d="M6 6v2h8.59L5 17.59L6.41 19L16 9.41V18h2V6z"
fill="currentColor"
/>
</svg>
</a>
</span>
<div
class="flex flex-row items-center gap-16"
>
<div
class="w-max"
data-testid=""
data-v-1ee8e33a=""
>
<button
aria-label="Schlagwörter übernehmen"
class="ds-button ds-button-medium ds-button-primary ds-button-with-icon ds-button-with-icon-only"
data-v-1ee8e33a=""
disabled=""
href="about:blank"
>
<svg
class="ds-button-icon"
|
Run tests:
frontend/node_modules/jest-fail-on-console/index.js#L48
Error: Expected test not to call console.log().
If the log is expected, test for it explicitly by mocking it out using jest.spyOn(console, 'log').mockImplementation() and test that the warning occurs.
hi { publicationStatus: 'UNPUBLISHED' }
at Console.captureMessage [as log] (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/jest-fail-on-console/index.js:83:25)
at Proxy.get renderDecision (/home/runner/work/ris-backend-service/ris-backend-service/frontend/src/domain/documentUnit.ts:251:13)
at Reflect.get (<anonymous>)
at MutableReactiveHandler.get (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/@vue/reactivity/dist/reactivity.cjs.js:949:25)
at Proxy._sfc_render (/home/runner/work/ris-backend-service/ris-backend-service/frontend/src/components/category-import/CategoryImport.vue:79:33)
at renderComponentRoot (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:6445:16)
at ReactiveEffect.componentUpdateFn [as fn] (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:5340:26)
at ReactiveEffect.run (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/@vue/reactivity/dist/reactivity.cjs.js:229:19)
at ReactiveEffect.runIfDirty (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/@vue/reactivity/dist/reactivity.cjs.js:267:12)
at callWithErrorHandling (/home/runner/work/ris-backend-service/ris-backend-service/frontend/node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:200:33)
❯ flushUnexpectedConsoleCalls node_modules/jest-fail-on-console/index.js:48:13
❯ node_modules/jest-fail-on-console/index.js:145:7
|
Run tests
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