Make confirmation alert message inform the triggering action

This commit is contained in:
rhian-cs
2021-06-08 17:46:35 -03:00
committed by Javi Martín
parent e45ae0d7a1
commit b27a05cbfd
13 changed files with 23 additions and 31 deletions

View File

@@ -53,7 +53,7 @@ describe "Images", :admin do
expect(page).to have_css("img[title='#{image.title}']")
expect(page).to have_content(image.title)
accept_confirm "Are you sure?" do
accept_confirm "Are you sure? Remove image \"#{image.title}\"" do
click_link "Remove image"
end