From 090cd368971302a0297a62ca23de105d56340fc3 Mon Sep 17 00:00:00 2001 From: VirajP1002 Date: Wed, 3 Jan 2024 11:48:31 +0000 Subject: [PATCH] Fix unhappy path --- .../test_benchmark_business_unhappy_path.json | 106 +++++++++++++----- 1 file changed, 76 insertions(+), 30 deletions(-) diff --git a/requests/test_benchmark_business_unhappy_path.json b/requests/test_benchmark_business_unhappy_path.json index a79f0ee7..c7810c94 100644 --- a/requests/test_benchmark_business_unhappy_path.json +++ b/requests/test_benchmark_business_unhappy_path.json @@ -36,14 +36,6 @@ "answer-to-year": "2019" } }, - { - "method": "GET", - "url": "/questionnaire/block-381/" - }, - { - "method": "GET", - "url": "/questionnaire/block-380/" - }, { "method": "GET", "url": "/questionnaire/block-379/" @@ -122,6 +114,7 @@ "you-live-here": "Yes" }, "redirect_route": "/questionnaire/people/{person_1}/add-or-edit-primary-person/" + }, { "method": "GET", @@ -155,7 +148,7 @@ "url": "/questionnaire/people/add-person/", "data": { "first-name": "Erling", - "last-name": "Haland" + "last-name": "Haaland" } }, { @@ -537,6 +530,7 @@ "company-or-branch-name": "Company 1" }, "redirect_route": "/questionnaire/companies/{company_1}/companies-repeating-block-1/" + }, { "method": "GET", @@ -583,7 +577,7 @@ "method": "POST", "url": "/questionnaire/companies/add-company/", "data": { - "company-or-branch-name": "Company 2" + "company-or-branch-name": "Company" }, "redirect_route": "/questionnaire/companies/{company_2}/companies-repeating-block-1/" }, @@ -710,33 +704,33 @@ }, { "method": "GET", - "url": "/questionnaire/first-number-block/?return_to=section-summary" + "url": "/questionnaire/first-number-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer" }, { "method": "POST", - "url": "/questionnaire/first-number-block/?return_to=section-summary", + "url": "/questionnaire/first-number-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer", "data": { "first-number-answer": "200" } }, { "method": "GET", - "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary" + "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer" }, { "method": "POST", - "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary", + "url": "/questionnaire/first-and-a-half-number-block/?return_to=section-summary&return_to_answer_id=skip-first-block-answer", "data": { "first-and-a-half-number-answer-also-in-total": "100" } }, { "method": "GET", - "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary" + "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary&return_to_answer_id=skip-first-block-answer" }, { "method": "POST", - "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary", + "url": "/questionnaire/currency-total-playback-1/?return_to=section-summary&return_to_answer_id=skip-first-block-answer", "data": {} }, { @@ -755,15 +749,35 @@ { "method": "POST", "url": "/questionnaire/", - "data" : {} + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2}/currency-total-playback-2/?resume=True" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2}/currency-total-playback-2/?resume=True", + "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_2}/set-min-max-block/?resume=True" + "url": "/questionnaire/people/{person_2}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_2}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{third_answer_value}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_2}/set-min-max-block/" }, { "method": "POST", - "url": "/questionnaire/people/{person_2}/set-min-max-block/?resume=True", + "url": "/questionnaire/people/{person_2}/set-min-max-block/", "data": { "set-minimum-answer": "500", "set-maximum-answer": "100" @@ -785,16 +799,35 @@ { "method": "POST", "url": "/questionnaire/", - "data" : {}, - "redirect_route": "/questionnaire/people/{person_3}/set-min-max-block/?resume=True" + "data": {} }, { "method": "GET", - "url": "/questionnaire/people/{person_3}/set-min-max-block/?resume=True" + "url": "/questionnaire/people/{person_3}/currency-total-playback-2/?resume=True" }, { "method": "POST", - "url": "/questionnaire/people/{person_3}/set-min-max-block/?resume=True", + "url": "/questionnaire/people/{person_3}/currency-total-playback-2/?resume=True", + "data": {} + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_3}/mutually-exclusive-checkbox/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_3}/mutually-exclusive-checkbox/", + "data": { + "checkbox-answer": "{third_answer_value}" + } + }, + { + "method": "GET", + "url": "/questionnaire/people/{person_3}/set-min-max-block/" + }, + { + "method": "POST", + "url": "/questionnaire/people/{person_3}/set-min-max-block/", "data": { "set-minimum-answer": "550", "set-maximum-answer": "200" @@ -824,6 +857,15 @@ "responsible-party-business-answer": "No" } }, + { + "method": "GET", + "url": "/questionnaire/sections/section-businesses/" + }, + { + "method": "POST", + "url": "/questionnaire/sections/section-businesses/", + "data": {} + }, { "method": "GET", "url": "/questionnaire/" @@ -845,11 +887,11 @@ }, { "method": "GET", - "url": "/questionnaire/any-businesses-or-branches/?return_to=section-summary" + "url": "/questionnaire/any-businesses-or-branches/?return_to=section-summary&return_to_answer_id=responsible-party-business-answer" }, { "method": "POST", - "url": "/questionnaire/any-businesses-or-branches/?return_to=section-summary", + "url": "/questionnaire/any-businesses-or-branches/?return_to=section-summary&return_to_answer_id=responsible-party-business-answer", "data": { "any-businesses-or-branches-answer": "Yes" } @@ -864,15 +906,15 @@ "data": { "business-or-branch-name": "Company 2" }, - "redirect_route": "/questionnaire/businesses/{company_2}/businesses-repeating-block-1/" + "redirect_route": "/questionnaire/businesses/{company_3}/businesses-repeating-block-1/" }, { "method": "GET", - "url": "/questionnaire/businesses/{company_2}/businesses-repeating-block-1/" + "url": "/questionnaire/businesses/{company_3}/businesses-repeating-block-1/" }, { "method": "POST", - "url": "/questionnaire/businesses/{company_2}/businesses-repeating-block-1/", + "url": "/questionnaire/businesses/{company_3}/businesses-repeating-block-1/", "data": { "registration-business-number": "19", "registration-business-date-day": "20", @@ -882,11 +924,11 @@ }, { "method": "GET", - "url": "/questionnaire/businesses/{company_2}/businesses-repeating-block-2/" + "url": "/questionnaire/businesses/{company_3}/businesses-repeating-block-2/" }, { "method": "POST", - "url": "/questionnaire/businesses/{company_2}/businesses-repeating-block-2/", + "url": "/questionnaire/businesses/{company_3}/businesses-repeating-block-2/", "data": { "authorised-business-trader-uk-radio": "Yes", "authorised-business-trader-eu-radio": "Yes" @@ -914,6 +956,10 @@ "any-other-business-trading-details-answer": "hI" } }, + { + "method": "GET", + "url": "/questionnaire/sections/section-businesses/" + }, { "method": "GET", "url": "/questionnaire/responsible-party-business/?return_to=section-summary&return_to_answer_id=responsible-party-business-answer"