-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
navigator redirects user if they veer off journey
- Loading branch information
Showing
5 changed files
with
190 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
spec/features/further_education_payments/jump_around_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
require "rails_helper" | ||
|
||
RSpec.feature "Further education payments" do | ||
scenario "visiting impermissible slug redirects back to last permissible slug" do | ||
when_further_education_payments_journey_configuration_exists | ||
|
||
visit landing_page_path(Journeys::FurtherEducationPayments::ROUTING_NAME) | ||
expect(page).to have_link("Start now") | ||
click_link "Start now" | ||
|
||
expect(page).to have_content("Are you a member of staff with teaching responsibilities?") | ||
|
||
visit claim_path(Journeys::FurtherEducationPayments::ROUTING_NAME, slug: "address") | ||
|
||
expect(page).to have_content("Are you a member of staff with teaching responsibilities?") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters