|
|
|
@ -353,17 +353,6 @@ RSpec.describe "Schemes scheme Features" do
|
|
|
|
|
expect(page).to have_content "Check your changes before updating this scheme" |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "when I press the back button" do |
|
|
|
|
before do |
|
|
|
|
click_link "Back" |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "lets me select the support answers" do |
|
|
|
|
expect(page).to have_current_path("/schemes/#{scheme.id}/support") |
|
|
|
|
expect(page).to have_content "What support does this scheme provide?" |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "when changing answers" do |
|
|
|
|
it "displays change links" do |
|
|
|
|
assert_selector "a", text: "Change", count: 12 |
|
|
|
@ -456,7 +445,6 @@ RSpec.describe "Schemes scheme Features" do
|
|
|
|
|
expect(page).to have_content "Check your changes before updating this scheme" |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "allows changing confirm-secondary-client-group question to no" do |
|
|
|
@ -471,7 +459,7 @@ RSpec.describe "Schemes scheme Features" do
|
|
|
|
|
click_button "Save and continue" |
|
|
|
|
|
|
|
|
|
expect(page).to have_current_path("/schemes/#{scheme.id}/check-answers") |
|
|
|
|
expect(page).to have_content "None" |
|
|
|
|
expect(page).not_to have_content "Secondary client group" |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|