Sha256: b53d19f06dc1c2c0733c52d30c7b8b313b82608a468d5e5f8957042bb95c819f
Contents?: true
Size: 1.57 KB
Versions: 24
Compression:
Stored size: 1.57 KB
Contents
require "application_system_test_case" module KepplerFrontend class ViewsTest < ApplicationSystemTestCase setup do @view = keppler_frontend_views(:one) end test "visiting the index" do visit views_url assert_selector "h1", text: "Views" end test "creating a View" do visit views_url click_on "New View" fill_in "Active", with: @view.active fill_in "Deleted At", with: @view.deleted_at fill_in "Format Result", with: @view.format_result fill_in "Method", with: @view.method fill_in "Name", with: @view.name fill_in "Position", with: @view.position fill_in "Root Path", with: @view.root_path fill_in "Url", with: @view.url click_on "Create View" assert_text "View was successfully created" click_on "Back" end test "updating a View" do visit views_url click_on "Edit", match: :first fill_in "Active", with: @view.active fill_in "Deleted At", with: @view.deleted_at fill_in "Format Result", with: @view.format_result fill_in "Method", with: @view.method fill_in "Name", with: @view.name fill_in "Position", with: @view.position fill_in "Root Path", with: @view.root_path fill_in "Url", with: @view.url click_on "Update View" assert_text "View was successfully updated" click_on "Back" end test "destroying a View" do visit views_url page.accept_confirm do click_on "Destroy", match: :first end assert_text "View was successfully destroyed" end end end
Version data entries
24 entries across 24 versions & 1 rubygems