A lot :)
This commit is contained in:
parent
aad67af0d1
commit
63fc206c27
153 changed files with 2043 additions and 646 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue