A lot :)
Some checks failed
/ Run tests (push) Successful in 8m56s
/ Run system tests (push) Failing after 1h0m48s
/ Build, push and deploy image (push) Successful in 7m47s

This commit is contained in:
david 2024-09-05 22:54:38 +02:00
parent aad67af0d1
commit 63fc206c27
153 changed files with 2043 additions and 646 deletions

View file

@ -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