Fix tests
Some checks failed
/ Run tests (push) Failing after 55s
/ Run system tests (push) Failing after 55s
/ Build, push and deploy image (push) Has been skipped

This commit is contained in:
david 2024-09-22 22:49:53 +02:00
parent fbf6923835
commit 6e1a17281d
22 changed files with 235 additions and 13 deletions

View file

@ -5,6 +5,11 @@ require "application_system_test_case"
class ReportsTest < ApplicationSystemTestCase
setup do
@report = reports(:one)
login_test
end
teardown do
logout
end
test "visiting the index" do
@ -33,7 +38,7 @@ class ReportsTest < ApplicationSystemTestCase
test "should destroy Report" do
visit report_url(@report)
click_on "Prüfbericht löschen", match: :first
assert_text("Report was successfully destroyed")
assert(Report.exists?(@report.id) == false)
end
end