Update system specs with detailed confirmation alerts

This commit is contained in:
rhian-cs
2021-06-10 11:22:05 -03:00
committed by Javi Martín
parent b27a05cbfd
commit 609e58cacb
39 changed files with 186 additions and 92 deletions

View File

@@ -75,7 +75,9 @@ describe "Documents", :admin do
visit admin_site_customization_documents_path
within("#document_#{document.id}") do
accept_confirm { click_button "Delete" }
accept_confirm("Are you sure? This action will delete \"#{document.title}\" and can't be undone.") do
click_button "Delete"
end
end
expect(page).to have_content "Document deleted succesfully"