diff --git a/src/components/Options/profileTypeOptions.scss b/src/components/Options/profileTypeOptions.scss index 441f2bdb265dcfc7fb04dfc24bb8d79445de6ed4..b8417ce649a2c9978434ec10772465569a905dde 100644 --- a/src/components/Options/profileTypeOptions.scss +++ b/src/components/Options/profileTypeOptions.scss @@ -18,6 +18,7 @@ display: flex; flex-wrap: wrap; padding: 0; + margin-top: 0; li { list-style-type: none; margin-right: 0.5rem; diff --git a/src/locales/fr.json b/src/locales/fr.json index 6ee816c5caf379d43972d53f01a9f7397dd946ac..86df6f301ebfa46d54aabd0e27826f4ac68bb32b 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -440,8 +440,10 @@ "title_floor": "Étage", "floor": { "question": "À quel étage est votre appartement ?", - "individual_house": "Maison individuelle", - "appartment": "appartement" + "ground_floor": "RDC", + "intermediate_floor": "Étage intermédiaire", + "last_floor": "Dernier étage", + "not_applicable": "Sans objet" }, "title_heating": "Chauffage", "heating": { diff --git a/src/services/profileType.service.spec.ts b/src/services/profileType.service.spec.ts index 6f16ffbcc2f7c847396a2c2fa4dc43031f37acbb..6ec7b7a22e4c591d3f77343ae410cc0d2f5e5591 100644 --- a/src/services/profileType.service.spec.ts +++ b/src/services/profileType.service.spec.ts @@ -225,14 +225,11 @@ describe('ProfileType service', () => { nextStep = profileTypeService.getNextFormStep( ProfileTypeStepForm.WARMING_FLUID ) - expect(nextStep).toEqual(ProfileTypeStepForm.INDIVIDUAL_INSULATION_WORK) - nextStep = profileTypeService.getNextFormStep( - ProfileTypeStepForm.INDIVIDUAL_INSULATION_WORK - ) expect(nextStep).toEqual(ProfileTypeStepForm.FACILITIES_INSTALLATION) nextStep = profileTypeService.getNextFormStep( ProfileTypeStepForm.FACILITIES_INSTALLATION ) + expect(nextStep).toEqual(ProfileTypeStepForm.HOT_WATER) nextStep = profileTypeService.getNextFormStep( ProfileTypeStepForm.HOT_WATER @@ -292,7 +289,7 @@ describe('ProfileType service', () => { nextStep = profileTypeService.getPreviousFormStep( ProfileTypeStepForm.FACILITIES_INSTALLATION ) - expect(nextStep).toEqual(ProfileTypeStepForm.INDIVIDUAL_INSULATION_WORK) + expect(nextStep).toEqual(ProfileTypeStepForm.WARMING_FLUID) nextStep = profileTypeService.getPreviousFormStep( ProfileTypeStepForm.HOT_WATER ) diff --git a/test/__mocks__/profileType.mock.ts b/test/__mocks__/profileType.mock.ts index 28419a667e7dc918a06c5360388b4364a68d7636..a94d66cde65ebcb76b1df368560546af4a3863ce 100644 --- a/test/__mocks__/profileType.mock.ts +++ b/test/__mocks__/profileType.mock.ts @@ -381,24 +381,24 @@ export const mockProfileTypeAnswers: ProfileTypeAnswer[] = [ choices: Object.values(IndividualOrCollective), }, { - type: ProfileTypeFormType.SINGLE_CHOICE, + type: ProfileTypeFormType.MULTI_CHOICE, attribute: 'hotWaterEquipment', choices: Object.values(HotWaterEquipment), }, { type: ProfileTypeFormType.SINGLE_CHOICE, attribute: 'hotWaterFluid', - choices: [FluidType.ELECTRICITY, FluidType.WATER, FluidType.GAS], + choices: [FluidType.ELECTRICITY, FluidType.GAS], }, { type: ProfileTypeFormType.SINGLE_CHOICE, attribute: 'warmingFluid', - choices: [FluidType.ELECTRICITY, FluidType.WATER, FluidType.GAS], + choices: [FluidType.ELECTRICITY, FluidType.GAS], }, { type: ProfileTypeFormType.SINGLE_CHOICE, attribute: 'cookingFluid', - choices: [FluidType.ELECTRICITY, FluidType.WATER, FluidType.GAS], + choices: [FluidType.ELECTRICITY, FluidType.GAS], }, { type: ProfileTypeFormType.SINGLE_CHOICE,