MAke sure datapicker do not trigger change on init. #4394
build-and-test.yaml
on: push
Build and test packages
3m 27s
Package bygger
0s
Package fyllut
0s
Deploy bygger to prod
0s
Trigger deploy fyllut to dev
0s
Annotations
2 errors and 1 warning
src/formio/components/core/datepicker/DatePicker.test.tsx > NavDatePicker > when rendered with Form.io > sets value to empty string when clearing value:
packages/shared-components/src/formio/components/core/datepicker/DatePicker.test.tsx#L109
TestingLibraryElementError: Unable to find an element with the text: Du må fylle ut: Dato (dd.mm.åååå). 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="formMountElement"
>
<div
class="formio-form"
>
<div>
<section
class="fyllut-layout"
id="maincontent"
tabindex="-1"
>
<div
class="main-col"
>
<h2
class="mb navds-heading navds-heading--large"
id="form-id"
>
Panel
</h2>
<form
aria-labelledby="form-id"
>
<div
class="mb-14"
ref="wizard-ecb2319"
>
<div
class="form-group has-feedback formio-component formio-component-textfield formio-component-textfield required"
id="ew91rwb"
ref="component"
>
<div
ref="react-ew91rwb"
>
<div
class="nav-input--xxl nav-new navds-form-field navds-form-field--medium"
>
<label
class="navds-form-field__label navds-label"
for="ew91rwb-textfield"
>
Fornavn
</label>
<input
autocomplete="off"
class="navds-text-field__input navds-body-short navds-body-short--medium"
id="ew91rwb-textfield"
inputmode="text"
type="text"
value=""
/>
<div
aria-live="polite"
aria-relevant="additions removals"
class="navds-form-field__error"
id="textField-error-rd"
/>
</div>
</div>
<div
class="formio-errors invalid-feedback"
ref="messageContainer"
/>
</div>
</div>
<div
class="mb-4"
>
<div
id="wizard-ecb2319-nav-container"
>
<nav
id="wizard-ecb2319-nav"
>
<div
class="button-row button-row__center"
>
<button
class="navds-button navds-button--primary"
ref="wizard-ecb2319-submit"
type="submit"
>
<span
aria-live="polite"
class="navds-label"
>
Neste steg
</span>
<span
class="navds-button__icon"
|
Build and test packages
Process completed with exit code 1.
|
Build and test packages
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: szenius/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|