Skip to content

Commit

Permalink
Fix unhappy path
Browse files Browse the repository at this point in the history
  • Loading branch information
VirajP1002 committed Jan 3, 2024
1 parent 9a4e004 commit 090cd36
Showing 1 changed file with 76 additions and 30 deletions.
106 changes: 76 additions & 30 deletions requests/test_benchmark_business_unhappy_path.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down Expand Up @@ -122,6 +114,7 @@
"you-live-here": "Yes"
},
"redirect_route": "/questionnaire/people/{person_1}/add-or-edit-primary-person/"

},
{
"method": "GET",
Expand Down Expand Up @@ -155,7 +148,7 @@
"url": "/questionnaire/people/add-person/",
"data": {
"first-name": "Erling",
"last-name": "Haland"
"last-name": "Haaland"
}
},
{
Expand Down Expand Up @@ -537,6 +530,7 @@
"company-or-branch-name": "Company 1"
},
"redirect_route": "/questionnaire/companies/{company_1}/companies-repeating-block-1/"

},
{
"method": "GET",
Expand Down Expand Up @@ -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/"
},
Expand Down Expand Up @@ -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": {}
},
{
Expand All @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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/"
Expand All @@ -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"
}
Expand All @@ -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",
Expand All @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 090cd36

Please sign in to comment.