wip: wcag structure
Some checks failed
/ Run tests (push) Successful in 7m57s
/ Run system tests (push) Failing after 4m18s
/ Build, push and deploy image (push) Failing after 59s

This commit is contained in:
david 2025-05-16 19:02:33 +02:00
parent 4c31dbbed0
commit 4dd445be57
48 changed files with 461 additions and 137 deletions

View file

@ -8,7 +8,7 @@ class ChecksControllerTest < ::ControllerTest
end
setup do
@principle = principles(:one)
@guideline = guidelines(:one)
@check = checks(:deletable)
User.create!(email_address: "test@example.com", password: "password")
login("test@example.com", "password")
@ -27,7 +27,7 @@ class ChecksControllerTest < ::ControllerTest
test "should create check" do
assert_difference("Check.count") do
post checks_url,
params: { check: { principle_id: @principle.id, number: Check.maximum(:number) + 1, level: @check.level, name_de: @check.name_de, position: @check.position,
params: { check: { guideline_id: @guideline.id, number: Check.maximum(:number) + 1, level: @check.level, name_de: @check.name_de, position: @check.position,
criterion_de: @check.criterion_de } }
end
@ -46,7 +46,7 @@ class ChecksControllerTest < ::ControllerTest
test "should update check" do
patch check_url(@check),
params: { check: { principle_id: @principle.id, level: @check.level, name_de: @check.t_name, position: @check.position,
params: { check: { guideline_id: @guideline.id, level: @check.level, name_de: @check.t_name, position: @check.position,
criterion_de: @check.criterion_de } }
assert_redirected_to check_url(@check)
end