Browse Source

checking the back functionality for support answers

pull/671/head
JG 3 years ago
parent
commit
471cfea4a3
  1. 11
      spec/features/schemes_spec.rb

11
spec/features/schemes_spec.rb

@ -353,6 +353,17 @@ RSpec.describe "Schemes scheme Features" do
expect(page).to have_content "Check your changes before updating this scheme" expect(page).to have_content "Check your changes before updating this scheme"
end 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 context "when changing answers" do
it "displays change links" do it "displays change links" do
assert_selector "a", text: "Change", count: 12 assert_selector "a", text: "Change", count: 12

Loading…
Cancel
Save