A lot :)
This commit is contained in:
parent
aad67af0d1
commit
63fc206c27
153 changed files with 2043 additions and 646 deletions
|
|
@ -1,7 +1,11 @@
|
|||
require 'application_system_test_case'
|
||||
# frozen_string_literal: true
|
||||
|
||||
class Admin::BackupsTest < ApplicationSystemTestCase
|
||||
test 'should create backup' do
|
||||
visit admin_backup_url
|
||||
require "application_system_test_case"
|
||||
|
||||
module Admin
|
||||
class BackupsTest < ApplicationSystemTestCase
|
||||
test "should create backup" do
|
||||
visit admin_backup_url
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,35 +1,37 @@
|
|||
require 'application_system_test_case'
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "application_system_test_case"
|
||||
|
||||
class ChecklistsTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@checklist = checklists(:one)
|
||||
end
|
||||
|
||||
test 'visiting the index' do
|
||||
test "visiting the index" do
|
||||
visit checklists_url
|
||||
assert_selector 'h1', text: 'Checklisten'
|
||||
assert_selector "h1", text: "Checklisten"
|
||||
end
|
||||
|
||||
test 'should create checklist' do
|
||||
test "should create checklist" do
|
||||
visit checklists_url
|
||||
click_on 'Checkliste hinzufügen'
|
||||
click_on "Checkliste hinzufügen"
|
||||
|
||||
fill_in_rich_text_area 'Details', with: @checklist.description_html
|
||||
fill_in 'Überschrift', with: @checklist.name
|
||||
click_on 'Checkliste erstellen'
|
||||
fill_in_rich_text_area "Details", with: @checklist.description_html
|
||||
fill_in "Überschrift", with: @checklist.name
|
||||
click_on "Checkliste erstellen"
|
||||
end
|
||||
|
||||
test 'should update Checkliste' do
|
||||
test "should update Checkliste" do
|
||||
visit checklist_url(@checklist)
|
||||
click_on 'Checkliste bearbeiten', match: :first
|
||||
click_on "Checkliste bearbeiten", match: :first
|
||||
|
||||
fill_in_rich_text_area 'Details', with: @checklist.description_html
|
||||
fill_in 'Überschrift', with: @checklist.name
|
||||
click_on 'Checkliste aktualisieren'
|
||||
fill_in_rich_text_area "Details", with: @checklist.description_html
|
||||
fill_in "Überschrift", with: @checklist.name
|
||||
click_on "Checkliste aktualisieren"
|
||||
end
|
||||
|
||||
test 'should destroy Checkliste' do
|
||||
test "should destroy Checkliste" do
|
||||
visit checklist_url(@checklist)
|
||||
click_on 'Checkliste löschen', match: :first
|
||||
click_on "Checkliste löschen", match: :first
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
require 'application_system_test_case'
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "application_system_test_case"
|
||||
|
||||
class ChecksTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
|
|
@ -6,39 +8,39 @@ class ChecksTest < ApplicationSystemTestCase
|
|||
@deletable_check = checks(:deletable)
|
||||
end
|
||||
|
||||
test 'visiting the index' do
|
||||
test "visiting the index" do
|
||||
visit checks_url
|
||||
assert_selector 'h1', text: 'Checks'
|
||||
assert_selector "h1", text: "Checks"
|
||||
end
|
||||
|
||||
test 'should create check' do
|
||||
test "should create check" do
|
||||
visit checks_url
|
||||
click_on 'Check hinzufügen'
|
||||
click_on "Check hinzufügen"
|
||||
|
||||
select 'AAA', from: 'Stufe'
|
||||
fill_in 'Name', with: @check.name
|
||||
fill_in 'Position', with: @check.position
|
||||
fill_in_rich_text_area 'Erfolgskriterium', with: @check.success_criterion_html
|
||||
click_on 'Check erstellen'
|
||||
select "AAA", from: "Stufe"
|
||||
fill_in "Name", with: @check.name
|
||||
fill_in "Position", with: @check.position
|
||||
fill_in_rich_text_area "Erfolgskriterium", with: @check.success_criterion_html
|
||||
click_on "Check erstellen"
|
||||
end
|
||||
|
||||
test 'should update Check' do
|
||||
test "should update Check" do
|
||||
visit check_url(@check)
|
||||
click_on 'Check bearbeiten', match: :first
|
||||
click_on "Check bearbeiten", match: :first
|
||||
|
||||
select 'AAA', from: 'Stufe'
|
||||
fill_in 'Name', with: @check.name
|
||||
fill_in 'Position', with: @check.position
|
||||
fill_in_rich_text_area 'Erfolgskriterium', with: @check.success_criterion_html
|
||||
click_on 'Check aktualisieren'
|
||||
select "AAA", from: "Stufe"
|
||||
fill_in "Name", with: @check.name
|
||||
fill_in "Position", with: @check.position
|
||||
fill_in_rich_text_area "Erfolgskriterium", with: @check.success_criterion_html
|
||||
click_on "Check aktualisieren"
|
||||
end
|
||||
|
||||
test 'should destroy Check' do
|
||||
test "should destroy Check" do
|
||||
visit check_url(@deletable_check)
|
||||
click_on 'Check löschen', match: :first
|
||||
click_on "Check löschen", match: :first
|
||||
end
|
||||
|
||||
test 'fail' do
|
||||
test "fail" do
|
||||
skip
|
||||
assert false
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,37 +1,39 @@
|
|||
require 'application_system_test_case'
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "application_system_test_case"
|
||||
|
||||
class ElementsTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@element = elements(:one)
|
||||
end
|
||||
|
||||
test 'visiting the index' do
|
||||
test "visiting the index" do
|
||||
visit elements_url
|
||||
assert_selector 'h1', text: 'Elemente'
|
||||
assert_selector "h1", text: "Elemente"
|
||||
end
|
||||
|
||||
test 'should create element' do
|
||||
test "should create element" do
|
||||
visit elements_url
|
||||
click_on 'Element hinzufügen'
|
||||
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'
|
||||
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"
|
||||
end
|
||||
|
||||
test 'should update Element' do
|
||||
test "should update Element" do
|
||||
visit element_url(@element)
|
||||
click_on 'Element bearbeiten', match: :first
|
||||
click_on "Element bearbeiten", match: :first
|
||||
|
||||
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 aktualisieren'
|
||||
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 aktualisieren"
|
||||
end
|
||||
|
||||
test 'should destroy Element' do
|
||||
test "should destroy Element" do
|
||||
visit element_url(@element)
|
||||
click_on 'Element löschen', match: :first
|
||||
click_on "Element löschen", match: :first
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,36 +1,38 @@
|
|||
require 'application_system_test_case'
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "application_system_test_case"
|
||||
|
||||
class LinkCategoriesTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@link_category = link_categories(:one)
|
||||
end
|
||||
|
||||
test 'visiting the index' do
|
||||
test "visiting the index" do
|
||||
visit link_categories_url
|
||||
assert_selector 'h1', text: 'Linkkategorien'
|
||||
assert_selector "h1", text: "Linkkategorien"
|
||||
end
|
||||
|
||||
test 'should create Linkkategorie' do
|
||||
test "should create Linkkategorie" do
|
||||
visit link_categories_url
|
||||
click_on 'Linkkategorie hinzufügen'
|
||||
click_on "Linkkategorie hinzufügen"
|
||||
|
||||
fill_in_rich_text_area 'Beschreibung', with: @link_category.description_html
|
||||
fill_in 'Name', with: @link_category.name
|
||||
click_on 'Linkkategorie erstellen'
|
||||
fill_in_rich_text_area "Beschreibung", with: @link_category.description_html
|
||||
fill_in "Name", with: @link_category.name
|
||||
click_on "Linkkategorie erstellen"
|
||||
end
|
||||
|
||||
test 'should update Link category' do
|
||||
test "should update Link category" do
|
||||
visit link_category_url(@link_category)
|
||||
click_on 'Linkkategorie bearbeiten', match: :first
|
||||
click_on "Linkkategorie bearbeiten", match: :first
|
||||
|
||||
fill_in_rich_text_area 'Beschreibung', with: @link_category.description_html
|
||||
fill_in 'Name', with: @link_category.name
|
||||
click_on 'Linkkategorie aktualisieren'
|
||||
fill_in_rich_text_area "Beschreibung", with: @link_category.description_html
|
||||
fill_in "Name", with: @link_category.name
|
||||
click_on "Linkkategorie aktualisieren"
|
||||
end
|
||||
|
||||
test 'should destroy Link category' do
|
||||
test "should destroy Link category" do
|
||||
link_category = link_categories(:deletable)
|
||||
visit link_category_url(link_category)
|
||||
click_on 'Linkkategorie löschen', match: :first
|
||||
click_on "Linkkategorie löschen", match: :first
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,37 +1,39 @@
|
|||
require 'application_system_test_case'
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "application_system_test_case"
|
||||
|
||||
class LinksTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@link = links(:one)
|
||||
end
|
||||
|
||||
test 'visiting the index' do
|
||||
test "visiting the index" do
|
||||
visit links_url
|
||||
assert_selector 'h1', text: 'Links'
|
||||
assert_selector "h1", text: "Links"
|
||||
end
|
||||
|
||||
test 'should create link' do
|
||||
test "should create link" do
|
||||
visit links_url
|
||||
click_on 'Link hinzufügen'
|
||||
click_on "Link hinzufügen"
|
||||
|
||||
select @link.link_category.name, from: 'Kategorie'
|
||||
fill_in 'Linktext', with: @link.text
|
||||
fill_in 'Link', with: @link.url
|
||||
click_on 'Link erstellen'
|
||||
select @link.link_category.name, from: "Kategorie"
|
||||
fill_in "Linktext", with: @link.text
|
||||
fill_in "Link", with: @link.url
|
||||
click_on "Link erstellen"
|
||||
end
|
||||
|
||||
test 'should update Link' do
|
||||
test "should update Link" do
|
||||
visit link_url(@link)
|
||||
click_on 'Link bearbeiten', match: :first
|
||||
click_on "Link bearbeiten", match: :first
|
||||
|
||||
select @link.link_category.name, from: 'Kategorie'
|
||||
fill_in 'Linktext', with: @link.text
|
||||
fill_in 'Link', with: @link.url
|
||||
click_on 'Link aktualisieren'
|
||||
select @link.link_category.name, from: "Kategorie"
|
||||
fill_in "Linktext", with: @link.text
|
||||
fill_in "Link", with: @link.url
|
||||
click_on "Link aktualisieren"
|
||||
end
|
||||
|
||||
test 'should destroy Link' do
|
||||
test "should destroy Link" do
|
||||
visit link_url(@link)
|
||||
click_on 'Link löschen', match: :first
|
||||
click_on "Link löschen", match: :first
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,35 +1,37 @@
|
|||
require 'application_system_test_case'
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "application_system_test_case"
|
||||
|
||||
class ReportsTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@report = reports(:one)
|
||||
end
|
||||
|
||||
test 'visiting the index' do
|
||||
test "visiting the index" do
|
||||
visit reports_url
|
||||
assert_selector 'h1', text: 'Prüfberichte'
|
||||
assert_selector "h1", text: "Prüfberichte"
|
||||
end
|
||||
|
||||
test 'should create report' do
|
||||
test "should create report" do
|
||||
visit reports_url
|
||||
click_on 'Prüfbericht hinzufügen'
|
||||
click_on "Prüfbericht hinzufügen"
|
||||
|
||||
fill_in_rich_text_area 'Projektbeschreibung', with: @report.comment_html
|
||||
fill_in 'Bezeichnung', with: @report.name
|
||||
click_on 'Prüfbericht erstellen'
|
||||
fill_in_rich_text_area "Projektbeschreibung", with: @report.comment_html
|
||||
fill_in "Bezeichnung", with: @report.name
|
||||
click_on "Prüfbericht erstellen"
|
||||
end
|
||||
|
||||
test 'should update Report' do
|
||||
test "should update Report" do
|
||||
visit report_url(@report)
|
||||
click_on 'Prüfbericht bearbeiten', match: :first
|
||||
click_on "Prüfbericht bearbeiten", match: :first
|
||||
|
||||
fill_in_rich_text_area 'Projektbeschreibung', with: @report.comment_html
|
||||
fill_in 'Bezeichnung', with: @report.name
|
||||
click_on 'Prüfbericht aktualisieren'
|
||||
fill_in_rich_text_area "Projektbeschreibung", with: @report.comment_html
|
||||
fill_in "Bezeichnung", with: @report.name
|
||||
click_on "Prüfbericht aktualisieren"
|
||||
end
|
||||
|
||||
test 'should destroy Report' do
|
||||
test "should destroy Report" do
|
||||
visit report_url(@report)
|
||||
click_on 'Prüfbericht löschen', match: :first
|
||||
click_on "Prüfbericht löschen", match: :first
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,44 +1,46 @@
|
|||
require 'application_system_test_case'
|
||||
# frozen_string_literal: true
|
||||
|
||||
require "application_system_test_case"
|
||||
|
||||
class SuccessCriteriaTest < ApplicationSystemTestCase
|
||||
setup do
|
||||
@success_criterion = success_criteria(:one)
|
||||
end
|
||||
|
||||
test 'visiting the index' do
|
||||
test "visiting the index" do
|
||||
visit success_criteria_url
|
||||
assert_selector 'h1', text: 'Erfolgskriterien'
|
||||
assert_selector "h1", text: "Erfolgskriterien"
|
||||
end
|
||||
|
||||
test 'should create Erfolgskriterium' do
|
||||
test "should create Erfolgskriterium" do
|
||||
visit success_criteria_url
|
||||
click_on 'Erfolgskriterium hinzufügen'
|
||||
click_on "Erfolgskriterium hinzufügen"
|
||||
|
||||
fill_in_rich_text_area 'Testkommentar', with: @success_criterion.comment_html
|
||||
fill_in_rich_text_area 'Richtlinie', with: @success_criterion.description_html
|
||||
fill_in_rich_text_area "Testkommentar", with: @success_criterion.comment_html
|
||||
fill_in_rich_text_area "Richtlinie", with: @success_criterion.description_html
|
||||
# fill_in 'Element', with: @success_criterion.element_id
|
||||
# fill_in 'Level', with: @success_criterion.level
|
||||
# fill_in 'Result', with: @success_criterion.result
|
||||
# fill_in 'Title', with: @success_criterion.title
|
||||
click_on 'Erfolgskriterium erstellen'
|
||||
click_on "Erfolgskriterium erstellen"
|
||||
end
|
||||
|
||||
test 'should update Erfolgskriterium' do
|
||||
test "should update Erfolgskriterium" do
|
||||
visit success_criterion_url(@success_criterion)
|
||||
click_on 'Erfolgskriterium bearbeiten', match: :first
|
||||
click_on "Erfolgskriterium bearbeiten", match: :first
|
||||
|
||||
fill_in_rich_text_area 'Testkommentar', with: @success_criterion.comment_html
|
||||
fill_in_rich_text_area 'Richtlinie', with: @success_criterion.description_html
|
||||
find('label', text: 'Bestanden', visible: true).click
|
||||
fill_in 'Titel', with: 'new'
|
||||
click_on 'Erfolgskriterium aktualisieren'
|
||||
fill_in_rich_text_area "Testkommentar", with: @success_criterion.comment_html
|
||||
fill_in_rich_text_area "Richtlinie", with: @success_criterion.description_html
|
||||
find("label", text: "Bestanden", visible: true).click
|
||||
fill_in "Titel", with: "new"
|
||||
click_on "Erfolgskriterium aktualisieren"
|
||||
|
||||
# assert_text 'Erfolgskriterium was successfully updated'
|
||||
# click_on 'Back'
|
||||
end
|
||||
|
||||
test 'should destroy Erfolgskriterium' do
|
||||
test "should destroy Erfolgskriterium" do
|
||||
visit success_criterion_url(@success_criterion)
|
||||
click_on 'Erfolgskriterium löschen', match: :first
|
||||
click_on "Erfolgskriterium löschen", match: :first
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue