Browse Source

checking the back functionality for secondary group

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

11
spec/features/schemes_spec.rb

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

Loading…
Cancel
Save