fix: set date validation and new daterangepicker for ulam mission cre… #1627
build-and-test-frontend.yml
on: pull_request
build-and-test-frontend
2m 54s
Annotations
2 errors and 20 warnings
src/v2/features/ulam/components/element/__tests__/mission-general-information-ulam-form-new.test.tsx > MissionGeneralInformationUlamFormNew > renders the form with initial values:
frontend/src/v2/features/ulam/components/element/__tests__/mission-general-information-ulam-form-new.test.tsx#L22
TestingLibraryElementError: Unable to find an element with the text: Type de mission *. 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="rs-stack"
style="align-items: center; flex-direction: column; gap: 1.5rem; padding-bottom: 2rem;"
>
<div
class="rs-stack-item"
style="width: 100%;"
>
<div
class="sc-giBObj iJgipd Element-Field Field-Select"
>
<label
class="sc-FFETS kqIDDQ Element-Label"
for="missionReportType"
>
Type de rapport
</label>
<div
class="sc-kwFycn bbZNXW"
>
<div
class="rs-picker rs-picker-select rs-picker-default rs-picker-toggle-wrapper rs-picker-cleanable"
>
<div
aria-controls="missionReportType-listbox"
aria-describedby="missionReportType-describe"
aria-disabled="false"
aria-expanded="false"
aria-haspopup="listbox"
class="rs-picker-toggle rs-btn rs-btn-default"
id="missionReportType"
role="combobox"
tabindex="0"
>
<div
class="rs-stack"
style="align-items: center;"
>
<div
class="rs-stack-item"
style="flex-grow: 1; overflow: hidden;"
>
<input
aria-hidden="true"
class="rs-picker-toggle-textbox rs-picker-toggle-read-only"
data-testid="picker-toggle-input"
name="missionReportType"
readonly=""
style="pointer-events: none;"
tabindex="-1"
value=""
/>
<span
class="rs-picker-toggle-placeholder"
data-testid="picker-describe"
id="missionReportType-describe"
>
Sélectionner
</span>
</div>
<div
class="rs-stack-item rs-picker-toggle-indicator"
>
<svg
aria-hidden="true"
aria-label="angle down"
class="rs-picker-caret-icon rs-icon rs-icon"
data-category="legacy"
fill="currentColor"
focusable="false"
height="1em"
viewBox="0 0 21 32"
width="1em"
>
<path
d="M19.196 13.143a.612.612 0 01-.179.411l-8.321 8.321c-.107.107-.268.179-.411.179s-.304-.071-.411-.179l-8.321-8.321c-.107-.107-.179-.268-.179-.411s.071-.304.179-.411l.893-.893a.582.582 0 01.411-.179c.143 0 .304.071.411.179l7.018 7.018 7.018-7.018c.107-.107.268-.179.411-.179s.304.071.411.179l.893.893a.617.617 0 01.179.411z"
/>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class="rs-stack-item"
style="width: 100%; text-align: left;"
>
<fieldset
class="sc-fufdwm ejhPaN Element-Fieldset Field-MultiCheckbox"
>
<legend
class="sc-UblHX XMGWD Element-Legend"
>
Type de mission
</legend>
<div
class="sc-Rjrgp gKrsAv Element-Fieldset__InnerBox"
>
<div
class="sc-hRgSog bOgmOa"
>
<div
class="sc-giBObj iJgipd Element-Field Field-Checkbox"
|
build-and-test-frontend
Process completed with exit code 2.
|
build-and-test-frontend:
frontend/src/v2/pages/home.tsx#L8
'ROUTES' is assigned a value but never used
|
build-and-test-frontend:
frontend/src/v2/pages/mission-list-ulam-page.tsx#L41
'exportIsLoading' is assigned a value but never used
|
build-and-test-frontend:
frontend/src/v2/pages/mission-list-ulam-page.tsx#L51
'exportAEM' is assigned a value but never used
|
build-and-test-frontend:
frontend/src/features/pam/mission/hooks/use-mission-excerpt.tsx#L1
'FetchPolicy' is defined but never used
|
build-and-test-frontend:
frontend/src/v2/features/common/components/elements/mission-list-daterange-navigator.tsx#L2
'Accent' is defined but never used
|
build-and-test-frontend:
frontend/src/v2/features/common/components/elements/mission-list-daterange-navigator.tsx#L2
'Button' is defined but never used
|
build-and-test-frontend:
frontend/src/v2/features/common/components/elements/mission-list-daterange-navigator.tsx#L37
React Hook useEffect has a missing dependency: 'onUpdateCurrentDate'. Either include it or remove the dependency array. If 'onUpdateCurrentDate' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
build-and-test-frontend:
frontend/src/v2/features/ulam/components/element/mission-create-dialog.tsx#L3
'Stack' is defined but never used
|
build-and-test-frontend:
frontend/src/v2/features/ulam/components/element/mission-create-dialog.tsx#L4
'MissionTypeEnum' is defined but never used
|
build-and-test-frontend:
frontend/src/v2/features/common/hooks/use-daterange-navigator.tsx#L2
'subDays' is defined but never used
|
build-and-test-frontend:
frontend/src/features/common/components/elements/dates/date-picker.test.tsx#L22
Date prototype is read only, properties should not be added
|
build-and-test-frontend:
frontend/src/features/common/components/elements/dates/date-picker.test.tsx#L27
Date prototype is read only, properties should not be added
|
build-and-test-frontend:
frontend/src/features/common/components/elements/dates/date-picker.test.tsx#L37
Date prototype is read only, properties should not be added
|
build-and-test-frontend:
frontend/src/features/common/components/elements/patchable-monitor-daterange.tsx#L21
'missionId' is assigned a value but never used
|
build-and-test-frontend:
frontend/src/features/pam/mission/components/elements/controls/control-administrative-form.tsx#L86
React Hook useEffect has a missing dependency: 'getControlInput'. Either include it or remove the dependency array
|
build-and-test-frontend:
frontend/src/features/pam/mission/components/elements/controls/control-gens-de-mer-form.tsx#L81
React Hook useEffect has a missing dependency: 'getControlInput'. Either include it or remove the dependency array
|
build-and-test-frontend:
frontend/src/features/pam/mission/components/elements/controls/control-navigation-form.tsx#L47
React Hook useEffect has a missing dependency: 'getControlInput'. Either include it or remove the dependency array
|
build-and-test-frontend:
frontend/src/features/pam/mission/components/elements/controls/control-security-form.tsx#L47
React Hook useEffect has a missing dependency: 'getControlInput'. Either include it or remove the dependency array
|
build-and-test-frontend:
frontend/src/features/pam/mission/components/elements/crew/mission-crew-form.tsx#L87
React Hook useEffect has a missing dependency: 'crewList'. Either include it or remove the dependency array
|
build-and-test-frontend:
frontend/src/features/pam/mission/components/elements/infractions/env-infraction-summary.test.tsx#L6
'Icon' is defined but never used
|