removed useEffect #20010
frontend-unit-tests.yml
on: push
CodeQL
4m 30s
Typechecking and linting
2m 7s
Testing
10m 36s
Annotations
2 errors and 3 warnings
SubformDataModel › Should toggle ErrorMessage visibility based on input validity:
frontend/packages/ux-editor/src/components/Properties/PropertiesHeader/EditLayoutSetForSubform/EditLayoutSet/CreateNewSubformSection/SubformDataModel.test.tsx#L82
TestingLibraryElementError: Unable to find an element with the text: [mockedText(schema_editor.error_reserved_keyword)]. 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="Toastify"
/>
<div
class="fds-paragraph fds-paragraph--sm fds-native-select--container"
>
<label
class="fds-label fds-label--sm fds-label--medium-weight fds-native-select__label"
for=":rg:"
>
[mockedText(ux_editor.component_properties.subform.data_model_binding_label)]
</label>
<select
class="fds-native-select fds-native-select--sm fds-focus"
disabled=""
id=":rg:"
name="subformDataModel"
>
<option
hidden=""
value=""
/>
<option
value="dataModelId1"
>
dataModelId1
</option>
<option
value="dataModelId2"
>
dataModelId2
</option>
</select>
</div>
<div
class="fds-paragraph fds-paragraph--sm fds-textfield fds-textfield--sm"
>
<label
class="fds-label fds-label--sm fds-label--medium-weight fds-textfield__label"
for="textfield-:ri:"
>
<span>
<span
class="studioLabelWrapper"
>
[mockedText(ux_editor.component_properties.subform.create_new_data_model_label)]
</span>
</span>
</label>
<div
class="fds-textfield__field"
>
<input
class="fds-textfield__input fds-focus"
id="textfield-:ri:"
name="newSubformDataModel"
size="20"
type="text"
value="new"
/>
</div>
<div
aria-live="polite"
aria-relevant="additions removals"
class="fds-textfield__error-message"
id="textfield-error-:ri:"
/>
</div>
</div>
</body>
at Object.getElementError (../node_modules/@testing-library/dom/dist/config.js:37:19)
at ../node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at ../node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at ../node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByText (packages/ux-editor/src/components/Properties/PropertiesHeader/EditLayoutSetForSubform/EditLayoutSet/CreateNewSubformSection/SubformDataModel.test.tsx:82:33)
|
Testing
Process completed with exit code 1.
|
Typechecking and linting
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
CodeQL
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Testing
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|