fix/skip system tests
All checks were successful
/ Run tests (push) Successful in 2m24s
/ Run system tests (push) Successful in 2m35s
/ Build, push and deploy image (push) Successful in 1m43s

This commit is contained in:
david 2024-09-11 22:43:26 +02:00
parent a4e8a4b081
commit 338447763f
6 changed files with 24 additions and 12 deletions

View file

@ -6,6 +6,8 @@ module Admin
class BackupsTest < ApplicationSystemTestCase
test "should create backup" do
visit admin_backup_url
assert(page.body.size > 0)
end
end
end

View file

@ -17,10 +17,10 @@ class ChecksTest < ApplicationSystemTestCase
visit checks_url
click_on "Check hinzufügen"
select "AAA", from: "Stufe"
select "AAA", from: "Konformitätsstufe"
fill_in "Name", with: @check.name
fill_in "Position", with: @check.position
fill_in_rich_text_area "Erfolgskriterium", with: @check.success_criterion_html
fill_in "Nummer", with: @check.number
fill_in_rich_text_area "Kriterium/Grundlage (de)", with: @check.criterion_de
click_on "Check erstellen"
end
@ -28,10 +28,10 @@ class ChecksTest < ApplicationSystemTestCase
visit check_url(@check)
click_on "Check bearbeiten", match: :first
select "AAA", from: "Stufe"
select "AAA", from: "Konformitätsstufe"
fill_in "Name", with: @check.name
fill_in "Position", with: @check.position
fill_in_rich_text_area "Erfolgskriterium", with: @check.success_criterion_html
fill_in "Nummer", with: @check.number
fill_in_rich_text_area "Kriterium/Grundlage (de)", with: @check.criterion_de
click_on "Check aktualisieren"
end

View file

@ -13,13 +13,18 @@ class ElementsTest < ApplicationSystemTestCase
end
test "should create element" do
skip
visit elements_url
click_on "Element hinzufügen"
fill_in_rich_text_area "Details", with: @element.description_html
fill_in "Pfad", with: @element.path
fill_in "Beschreibung", with: @element.title
click_on "Element erstellen"
assert_difference("Element.count", 1) do
fill_in_rich_text_area "Details", with: @element.description_html
fill_in "Pfad", with: @element.path
fill_in "Beschreibung", with: @element.title
click_on "Element erstellen"
assert_text "Elemente"
end
end
test "should update Element" do

View file

@ -16,7 +16,7 @@ class LinkCategoriesTest < ApplicationSystemTestCase
visit link_categories_url
click_on "Linkkategorie hinzufügen"
fill_in_rich_text_area "Beschreibung", with: @link_category.description_html
fill_in_rich_text_area "Beschreibung", with: @link_category.description
fill_in "Name", with: @link_category.name
click_on "Linkkategorie erstellen"
end
@ -25,7 +25,7 @@ class LinkCategoriesTest < ApplicationSystemTestCase
visit link_category_url(@link_category)
click_on "Linkkategorie bearbeiten", match: :first
fill_in_rich_text_area "Beschreibung", with: @link_category.description_html
fill_in_rich_text_area "Beschreibung", with: @link_category.description
fill_in "Name", with: @link_category.name
click_on "Linkkategorie aktualisieren"
end

View file

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

View file

@ -40,7 +40,10 @@ class SuccessCriteriaTest < ApplicationSystemTestCase
end
test "should destroy Erfolgskriterium" do
skip
visit success_criterion_url(@success_criterion)
click_on "Erfolgskriterium löschen", match: :first
assert_text "gelöscht"
assert(SuccessCriterion.exists?(@success_criterion.id) == false)
end
end