mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
42 lines
841 B
Ruby
42 lines
841 B
Ruby
require "application_system_test_case"
|
|
|
|
class TimelinesTest < ApplicationSystemTestCase
|
|
setup do
|
|
@timeline = timelines(:one)
|
|
end
|
|
|
|
test "visiting the index" do
|
|
visit timelines_url
|
|
assert_selector "h1", text: "Timelines"
|
|
end
|
|
|
|
test "creating a Timeline" do
|
|
visit timelines_url
|
|
click_on "New Timeline"
|
|
|
|
click_on "Create Timeline"
|
|
|
|
assert_text "Timeline was successfully created"
|
|
click_on "Back"
|
|
end
|
|
|
|
test "updating a Timeline" do
|
|
visit timelines_url
|
|
click_on "Edit", match: :first
|
|
|
|
click_on "Update Timeline"
|
|
|
|
assert_text "Timeline was successfully updated"
|
|
click_on "Back"
|
|
end
|
|
|
|
test "destroying a Timeline" do
|
|
visit timelines_url
|
|
page.accept_confirm do
|
|
click_on "Destroy", match: :first
|
|
end
|
|
|
|
assert_text "Timeline was successfully destroyed"
|
|
end
|
|
end
|