show check number and select correct elements
Some checks failed
/ Run tests (push) Successful in 1m42s
/ Run system tests (push) Failing after 2m1s
/ Build, push and deploy image (push) Successful in 1m35s

This commit is contained in:
david 2024-11-17 17:11:17 +01:00
parent 92c7fd43b1
commit b400ba7cea

View file

@ -42,7 +42,7 @@ h2 2 Protokoll
- current_page_pos += 1 - current_page_pos += 1
- current_element_pos = 0 - current_element_pos = 0
/h3 = "2.#{current_page_pos} #{page.path}" /h3 = "2.#{current_page_pos} #{page.path}"
- page.elements { |e| e.success_criteria.any? { _1.failed? } }.each do |element| - page.elements.select { |e| e.success_criteria.any? { _1.failed? } }.each do |element|
- current_element_pos += 1 - current_element_pos += 1
- current_abs_element_pos += 1 - current_abs_element_pos += 1
- current_sc_pos = 0 - current_sc_pos = 0
@ -56,6 +56,7 @@ h2 2 Protokoll
- element.success_criteria.select{ _1.failed? }.each do |sc| - element.success_criteria.select{ _1.failed? }.each do |sc|
- current_sc_pos += 1 - current_sc_pos += 1
h4 = "2.#{current_abs_element_pos}.#{current_sc_pos} #{sc.title}" h4 = "2.#{current_abs_element_pos}.#{current_sc_pos} #{sc.title}"
small = sc.number
- if sc.test_comment? - if sc.test_comment?
p = sc.test_comment p = sc.test_comment
- safe_display(sc.quick_criterion) do - safe_display(sc.quick_criterion) do