From 8c1beadc8fb93ea6b193578253fcfba76ef65730 Mon Sep 17 00:00:00 2001 From: Caillou <6117264+JeSuisUnCaillou@users.noreply.github.com> Date: Tue, 21 Jan 2025 12:17:23 +0100 Subject: [PATCH] fix previoux form of impot part --- config/authorization_definitions.yml | 2 +- spec/models/authorization_definition_spec.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/authorization_definitions.yml b/config/authorization_definitions.yml index 8000f7294..b5c47ea95 100644 --- a/config/authorization_definitions.yml +++ b/config/authorization_definitions.yml @@ -334,7 +334,7 @@ shared: type: production previouses: - id: api_impot_particulier_sandbox - form_id: api-impot-particulier-production + form_id: api-impot-particulier-sandbox blocks: - name: basic_infos - name: personal_data diff --git a/spec/models/authorization_definition_spec.rb b/spec/models/authorization_definition_spec.rb index 481b28590..fa5bbbbb0 100644 --- a/spec/models/authorization_definition_spec.rb +++ b/spec/models/authorization_definition_spec.rb @@ -83,6 +83,10 @@ let(:authorization_request_class) { AuthorizationRequest::APIImpotParticulierSandbox } it { is_expected.to be_a AuthorizationRequestForm } + + it 'selects the previous stage form' do + expect(previous_stage_form.id).to eq('api-impot-particulier-sandbox') + end end end end