Fix test
Some checks failed
/ Run tests (push) Successful in 2m13s
/ Run system tests (push) Failing after 2m16s
/ Build, push and deploy image (push) Successful in 2m7s

This commit is contained in:
david 2024-11-17 00:50:39 +01:00
parent 7f1c634996
commit aa1552db81

View file

@ -37,7 +37,9 @@ class ReportsTest < ApplicationSystemTestCase
test "should destroy Report" do
visit report_url(@report)
click_on "Prüfbericht löschen", match: :first
accept_confirm do
click_on "Prüfbericht löschen", match: :first
end
assert_text("Prüfberichte")
assert(Report.exists?(@report.id) == false)
end