Refactorings and gui improvements
This commit is contained in:
parent
c965e03e5a
commit
d1294c2fc4
46 changed files with 358 additions and 128020 deletions
|
|
@ -13,13 +13,13 @@ class ElementsTest < ApplicationSystemTestCase
|
|||
end
|
||||
|
||||
test "visiting the index" do
|
||||
visit elements_url
|
||||
visit page_elements_url(@element.page)
|
||||
assert_selector "h1", text: "Elemente"
|
||||
end
|
||||
|
||||
test "should create element" do
|
||||
skip
|
||||
visit elements_url
|
||||
visit page_elements_url(@element.page)
|
||||
click_on "Element hinzufügen"
|
||||
|
||||
assert_difference("Element.count", 1) do
|
||||
|
|
@ -35,9 +35,6 @@ class ElementsTest < ApplicationSystemTestCase
|
|||
test "should update Element" do
|
||||
visit element_url(@element)
|
||||
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"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue