Skip to content

Commit 15bb9cb

Browse files
committed
Adding functional tests
1 parent 6a4825b commit 15bb9cb

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"description": "DIAC-967-updates-detention-address",
3+
"request": {
4+
"uri": "/asylum/ccdMidEvent?pageId=ircName",
5+
"credentials": "AdminOfficer",
6+
"input": {
7+
"eventId": "updateDetentionLocation",
8+
"state": "appealSubmitted",
9+
"caseData": {
10+
"template": "minimal-appeal-submitted.json",
11+
"replacements": {
12+
"appellantInDetention": "Yes",
13+
"detentionFacility": "other",
14+
"otherDetentionFacilityName": "Some other prison",
15+
"appellantAddress": {
16+
"County": "Middlesex",
17+
"Country": "United Kingdom",
18+
"PostCode": "UB3 4FS",
19+
"PostTown": "Hayes",
20+
"AddressLine1": "Flat 1",
21+
"AddressLine2": "Laurina Apartments",
22+
"AddressLine3": "10 Carnation Gardens"
23+
}
24+
}
25+
}
26+
}
27+
},
28+
"expectation": {
29+
"status": 200,
30+
"errors": [],
31+
"caseData": {
32+
"template": "minimal-appeal-submitted.json",
33+
"replacements": {
34+
"detentionBuilding": "Flat 1",
35+
"detentionAddressLines": "Laurina Apartments, 10 Carnation Gardens, Hayes, Middlesex, United Kingdom",
36+
"detentionPostcode": "UB3 4FS"
37+
}
38+
}
39+
}
40+
}

src/functionalTest/resources/scenarios/DIAC-967-populates-detention-address.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"replacements": {
2525
"detentionBuilding": "Harmondsworth IRC",
2626
"detentionAddressLines": "Colnbrook-by-pass, Harmondsworth, West Drayton, Middlesex",
27-
"detentionPostCode": "UB7 0HB"
27+
"detentionPostcode": "UB7 0HB"
2828
}
2929
}
3030
}

0 commit comments

Comments
 (0)