Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:GSA/touchpoints into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwoldatwork committed Nov 26, 2019
2 parents f51e633 + 1fc513c commit 7388720
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion spec/features/admin/forms_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,23 @@
page.driver.browser.switch_to.alert.accept
expect(page).to have_content("Question was successfully destroyed.")
end
end

describe "update a Touchpoint Form Section" do
let(:new_title) { "New Form Section Title" }

before do
visit edit_admin_form_form_section_path(form_section2.form.id, form_section2.id)
fill_in("form_section[title]", with: new_title)
click_button "Update Form section"
end

it "redirect to /admin/forms/:id/edit with a success flash message" do
expect(page.current_path).to eq(edit_admin_form_path(form_section2.form.id))
expect(page).to have_content("Form section was successfully updated.")
expect(page).to have_content(new_title)
end
end
end
end

describe "adding Question Options" do
Expand Down

0 comments on commit 7388720

Please sign in to comment.