Skip to content

Commit 0c0692f

Browse files
committed
Update feature tests to cover adding a "None of the above" question
1 parent 6406f2d commit 0c0692f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

spec/features/form/add_or_edit_questions/add_a_question_for_each_type_of_answer_spec.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,13 @@ def fill_in_selection_options(options)
222222
fill_in "Option 2", with: options[1]
223223
click_button "Add another option"
224224
fill_in "Option 3", with: options[2]
225-
choose "Yes"
225+
choose "Yes, and let people provide a different answer"
226+
click_button "Continue"
227+
228+
expect(page.find("h1")).to have_text "Ask for an answer if someone selects ‘None of the above’"
229+
expect_page_to_have_no_axe_errors(page)
230+
fill_in "Enter a question or label for the text box", with: "Enter your own option"
231+
choose "Mandatory"
226232
click_button "Continue"
227233

228234
click_link "Change Options"

0 commit comments

Comments
 (0)