Browse Source

checking the back functionality for confirm secondary

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

11
spec/features/schemes_spec.rb

@ -310,6 +310,17 @@ RSpec.describe "Schemes scheme Features" do
expect(page).to have_content "What is the other client group?" expect(page).to have_content "What is the other client group?"
end end
context "when I press the back button" do
before do
click_link "Back"
end
it "lets me confirm the secondary group" do
expect(page).to have_current_path("/schemes/#{scheme.id}/confirm-secondary-client-group")
expect(page).to have_content "Does this scheme provide for another client group?"
end
end
context "when I select the secondary group" do context "when I select the secondary group" do
before do before do
choose "Homeless families with support needs" choose "Homeless families with support needs"

Loading…
Cancel
Save