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

Version Path
keppler-2.1.22 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.21 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.20 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.19 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.18 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.17 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.16 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.15 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.14 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.13 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.12 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.11 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.10 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.9 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.8 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.7 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.6 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.5 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.4 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb
keppler-2.1.3 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/views_test.rb