Skip to content

Commit

Permalink
fix(test): restore has_questionnaire test
Browse files Browse the repository at this point in the history
  • Loading branch information
moustachu authored and Quentinchampenois committed Sep 10, 2024
1 parent 7acdfff commit d3c75aa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions spec/shared/has_questionnaire.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,17 +104,17 @@ def answer_first_questionnaire
end
end

# it "requires confirmation when exiting mid-answering" do
# visit questionnaire_public_path
it "requires confirmation when exiting mid-answering" do
visit questionnaire_public_path

# fill_in question.body["en"], with: "My first answer"
fill_in question.body["en"], with: "My first answer"

# dismiss_page_unload do
# page.find(".logo-wrapper a").click
# end
dismiss_page_unload do
page.find(".logo-wrapper a").click
end

# expect(page).to have_current_path questionnaire_public_path
# end
expect(page).to have_current_path questionnaire_public_path
end

context "when the questionnaire has already been answered by someone else" do
let!(:question) do
Expand Down

0 comments on commit d3c75aa

Please sign in to comment.