Skip to content

Commit

Permalink
AP-5220: Using change link to change from clients UK home address
Browse files Browse the repository at this point in the history
  • Loading branch information
agoldstone93 committed Aug 22, 2024
1 parent 2107c6c commit 54e2564
Show file tree
Hide file tree
Showing 2 changed files with 200 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 63 additions & 0 deletions features/providers/check_provider_answers.feature
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,69 @@ Feature: Checking client details answers backwards and forwards
| Correspondence address | Transport For London\n98 Petty France\nLondon\nSW1H 9EA |
| Home address | Grande Rue 2\nMarseille F-54321\nFrance |

@javascript @vcr
Scenario: I am able to change from "My client's UK home address" to "Another UK residential address"
Given I complete the passported journey as far as check your answers for client details
And the "Client details" check your answers section should contain:
| question | answer |
| Home address | Transport For London\n98 Petty France\nLondon\nSW1H 9EA |
When I click Check Your Answers Change link for "correspondence address choice"
Then I should be on a page with title "Where should we send your client's correspondence?"

When I choose "Another UK residential address"
And I click "Save and continue"
Then I should be on a page with title "Find your client's correspondence address"

When I enter a postcode 'SW1H 9EA'
And I click 'Find address'
And I choose an address 'British Transport Police, 98 Petty France, London, SW1H 9EA'
And I click 'Use this address'
Then I should be on a page with title "Do you want to add a 'care of' recipient for your client's mail?"

When I choose "Yes, a person"
And I enter First name "Brian"
And I enter Last name "Surname"
And I click "Save and continue"
Then I should be on a page with title "Check your answers"
And the "Client details" check your answers section should contain:
| question | answer |
| Correspondence address | British Transport Police\n98 Petty France\nLondon\nSW1H 9EA |
| Home address | Transport For London\n98 Petty France\nLondon\nSW1H 9EA |
| Care of recipient | Brian Surname |
| Client has a home address? | Yes |

@javascript @vcr
Scenario: I am able to change from "My client's UK home address" to "A UK office address"
Given I complete the passported journey as far as check your answers for client details
And the "Client details" check your answers section should contain:
| question | answer |
| Home address | Transport For London\n98 Petty France\nLondon\nSW1H 9EA |
When I click Check Your Answers Change link for "correspondence address choice"
Then I should be on a page with title "Where should we send your client's correspondence?"

When I choose "A UK office address"
And I click "Save and continue"
Then I should be on a page with title "Enter your client's correspondence address"

When I enter address line one 'British Transport Police'
And I enter address line two '98 Petty France'
And I enter city 'London'
And I enter a postcode 'SW1H 9EA'
And I click 'Save and continue'
Then I should be on a page with title "Do you want to add a 'care of' recipient for your client's mail?"

When I choose "Yes, a person"
And I enter First name "Brian"
And I enter Last name "Surname"
And I click "Save and continue"
Then I should be on a page with title "Check your answers"
And the "Client details" check your answers section should contain:
| question | answer |
| Correspondence address | British Transport Police\n98 Petty France\nLondon\nSW1H 9EA |
| Home address | Transport For London\n98 Petty France\nLondon\nSW1H 9EA |
| Care of recipient | Brian Surname |
| Client has a home address? | Yes |

@javascript
Scenario: I am able to return and remove the client's national insurance number
Given I complete the passported journey as far as check your answers for client details
Expand Down

0 comments on commit 54e2564

Please sign in to comment.