Browse Source

checking the back functionality for primary gourp

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

11
spec/features/schemes_spec.rb

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

Loading…
Cancel
Save