fix: add information alert when no data model bindings (#14758) #21938
frontend-unit-tests.yml
on: push
CodeQL
4m 56s
Typechecking and linting
2m 17s
Testing
13m 7s
Annotations
2 errors
CodeListPage › Calls onUpdateTextResource with the new text resource and the default language when a text resource is changed in the create dialog:
frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/CodeListPage.test.tsx#L278
Unable to find role="radio" and name "[mockedText(code_list_editor.text_resource.label.edit_mode, {"number":1})]"
Ignored nodes: comments, script, style
<dialog
class="fds-modal createNewCodeListModal dialog withContentPadding"
open=""
>
<span
aria-hidden="true"
data-floating-ui-focus-guard=""
data-floating-ui-inert=""
data-type="inside"
role="button"
style="border: 0px; height: 1px; margin: -1px; overflow: hidden; padding: 0px; position: fixed; white-space: nowrap; width: 1px; top: 0px; left: 0px;"
tabindex="0"
/>
<div
aria-hidden="true"
class="fds-modal__header heading"
data-floating-ui-inert=""
>
<h2
class="fds-heading fds-heading--xs"
>
<span>
[mockedText(app_content_library.code_lists.create_new_code_list_modal_title)]
</span>
</h2>
<button
class="fds-btn fds-focus fds-btn--md fds-btn--tertiary fds-btn--second fds-btn--icon-only fds-modal__header__button"
name="close"
type="button"
>
<svg
aria-labelledby="title-r1b4"
fill="none"
focusable="false"
font-size="1.5em"
height="1em"
role="img"
viewBox="0 0 24 24"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<title
id="title-r1b4"
>
close modal
</title>
<path
d="M6.53 5.47a.75.75 0 0 0-1.06 1.06L10.94 12l-5.47 5.47a.75.75 0 1 0 1.06 1.06L12 13.06l5.47 5.47a.75.75 0 1 0 1.06-1.06L13.06 12l5.47-5.47a.75.75 0 0 0-1.06-1.06L12 10.94 6.53 5.47Z"
fill="currentColor"
/>
</svg>
</button>
</div>
<div
class="fds-modal__content content"
>
<div
class="createNewCodeList"
>
<div
class="fds-paragraph fds-paragraph--sm fds-textfield fds-textfield--sm codeListTitle"
>
<label
aria-hidden="true"
class="fds-label fds-label--sm fds-label--medium-weight fds-textfield__label"
data-floating-ui-inert=""
for="textfield-:r1b5:"
>
<span>
<span
class="studioLabelWrapper"
>
[mockedText(app_content_library.code_lists.create_new_code_list_name)]
</span>
</span>
</label>
<div
aria-hidden="true"
class="fds-textfield__field"
data-floating-ui-inert=""
>
<input
class="fds-textfield__input fds-focus"
id="textfield-:r1b5:"
size="20"
type="text"
value=""
/>
</div>
<div
aria-live="polite"
aria-relevant="additions removals"
class="fds-textfield__error-message"
id="textfield-error-:r1b5:"
/>
</div>
<div
class="codeListEditor"
>
<fieldset
class="fds-fieldset fds-fieldset--spacing codeListEditor"
>
<legend
aria-hidden="true"
class="fds-label fds-label--sm fds-label--medium-weight fds-fieldset__legend"
data-floating-ui-inert=""
>
<span
class="fds-fieldset__legend__content"
>
[mockedText(code_list_editor.legend)]
</span>
</legend>
<table
class="fds-paragraph fds-paragraph--sm fds-table fds-table--sm inputTable"
>
<thead
aria-hidden="true"
class="fds-table__head"
data-floating-ui-inert=""
>
<tr
class="fds-table__row"
>
<th
class="fds-table__header__cell"
>
[mockedText(code_list_editor.column_title_value)]
</th>
<th
class="fds-table__header__cell"
>
[mockedText(code_list_editor.column_title_label)]
</th>
<th
class="fds-table__header__cell"
|
Testing
Process completed with exit code 1.
|