diff --git a/src/components/Connection/SGEConnect/StepIdentityAndPdl.tsx b/src/components/Connection/SGEConnect/StepIdentityAndPdl.tsx index d4270b31a3d8143729dc7320ad9d10d616f849cd..25d988740e3a6b7dd77829f8b4db44da58ff916a 100644 --- a/src/components/Connection/SGEConnect/StepIdentityAndPdl.tsx +++ b/src/components/Connection/SGEConnect/StepIdentityAndPdl.tsx @@ -34,6 +34,7 @@ const StepIdentityAndPdl = ({ value={sgeState.firstName} onChange={e => onChange('firstName', e.target.value)} required + autoComplete="given-name" /> <TextField label={t('auth.enedissgegrandlyon.lastName')} @@ -43,6 +44,7 @@ const StepIdentityAndPdl = ({ value={sgeState.lastName} onChange={e => onChange('lastName', e.target.value)} required + autoComplete="family-name" /> <h2 className="text-22-bold">{t('auth.enedissgegrandlyon.pdlTitle')}</h2> <TextField diff --git a/src/components/Connection/SGEConnect/__snapshots__/SgeConnectView.spec.tsx.snap b/src/components/Connection/SGEConnect/__snapshots__/SgeConnectView.spec.tsx.snap index 94a59e9e898428b659711ca25597d55927508475..35d1e2900882af499fac29f8fd38d2201cc297a7 100644 --- a/src/components/Connection/SGEConnect/__snapshots__/SgeConnectView.spec.tsx.snap +++ b/src/components/Connection/SGEConnect/__snapshots__/SgeConnectView.spec.tsx.snap @@ -116,6 +116,7 @@ exports[`SgeConnectView component should be rendered correctly 1`] = ` > <input aria-invalid="false" + autocomplete="given-name" class="MuiInputBase-input MuiOutlinedInput-input" id="firstName" required="" @@ -160,6 +161,7 @@ exports[`SgeConnectView component should be rendered correctly 1`] = ` > <input aria-invalid="false" + autocomplete="family-name" class="MuiInputBase-input MuiOutlinedInput-input" id="lastName" required="" diff --git a/src/components/Connection/SGEConnect/__snapshots__/StepIdentityAndPdl.spec.tsx.snap b/src/components/Connection/SGEConnect/__snapshots__/StepIdentityAndPdl.spec.tsx.snap index f03a152d9d6bd82a52084beb3054dd008bfeb356..05a6887264e695714b1d1cffd1aa20f204bbc26f 100644 --- a/src/components/Connection/SGEConnect/__snapshots__/StepIdentityAndPdl.spec.tsx.snap +++ b/src/components/Connection/SGEConnect/__snapshots__/StepIdentityAndPdl.spec.tsx.snap @@ -33,6 +33,7 @@ exports[`StepIdentityAndPdl component should be rendered correctly 1`] = ` > <input aria-invalid="false" + autocomplete="given-name" class="MuiInputBase-input MuiOutlinedInput-input" id="firstName" required="" @@ -77,6 +78,7 @@ exports[`StepIdentityAndPdl component should be rendered correctly 1`] = ` > <input aria-invalid="false" + autocomplete="family-name" class="MuiInputBase-input MuiOutlinedInput-input" id="lastName" required=""