Fix modal text warning in answers documents spec
It looks like we get this warning if we check the dialog message. Using `accept_confirm` the same way we do in the rest of the application solves the problem.
This commit is contained in:
@@ -34,9 +34,7 @@ describe "Documents" do
|
|||||||
visit admin_answer_documents_path(answer)
|
visit admin_answer_documents_path(answer)
|
||||||
expect(page).to have_content(document.title)
|
expect(page).to have_content(document.title)
|
||||||
|
|
||||||
accept_confirm "Are you sure?" do
|
accept_confirm { click_link "Delete" }
|
||||||
click_link "Delete"
|
|
||||||
end
|
|
||||||
|
|
||||||
expect(page).not_to have_content(document.title)
|
expect(page).not_to have_content(document.title)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user