Sha256: 94393db2a5bda9bdae3f38a36cd3ab2e827092b35688bc9d49cb46a7ad28c506

Contents?: true

Size: 1.54 KB

Versions: 24

Compression:

Stored size: 1.54 KB

Contents

require "application_system_test_case"

module KepplerFrontend
  class CallbackFunctionsTest < ApplicationSystemTestCase
    setup do
      @callback_function = keppler_frontend_callback_functions(:one)
    end

    test "visiting the index" do
      visit callback_functions_url
      assert_selector "h1", text: "Callback Functions"
    end

    test "creating a Callback function" do
      visit callback_functions_url
      click_on "New Callback Function"

      fill_in "Deleted At", with: @callback_function.deleted_at
      fill_in "Description", with: @callback_function.description
      fill_in "Name", with: @callback_function.name
      fill_in "Position", with: @callback_function.position
      click_on "Create Callback function"

      assert_text "Callback function was successfully created"
      click_on "Back"
    end

    test "updating a Callback function" do
      visit callback_functions_url
      click_on "Edit", match: :first

      fill_in "Deleted At", with: @callback_function.deleted_at
      fill_in "Description", with: @callback_function.description
      fill_in "Name", with: @callback_function.name
      fill_in "Position", with: @callback_function.position
      click_on "Update Callback function"

      assert_text "Callback function was successfully updated"
      click_on "Back"
    end

    test "destroying a Callback function" do
      visit callback_functions_url
      page.accept_confirm do
        click_on "Destroy", match: :first
      end

      assert_text "Callback function 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/callback_functions_test.rb
keppler-2.1.21 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.20 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.19 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.18 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.17 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.16 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.15 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.14 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.13 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.12 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.11 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.10 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.9 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.8 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.7 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.6 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.5 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.4 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb
keppler-2.1.3 installer/core/rockets/keppler_frontend/test/system/keppler_frontend/callback_functions_test.rb