Sha256: 7867d15f809dff6201fb7b23440cf69c6b0a14716c31fd1c3dd56d22318413b8

Contents?: true

Size: 1.43 KB

Versions: 24

Compression:

Stored size: 1.43 KB

Contents

require "application_system_test_case"

module KepplerFrontend
  class FunctionsTest < ApplicationSystemTestCase
    setup do
      @function = keppler_frontend_functions(:one)
    end

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

    test "creating a Function" do
      visit functions_url
      click_on "New Function"

      fill_in "Deleted At", with: @function.deleted_at
      fill_in "Description", with: @function.description
      fill_in "Name", with: @function.name
      fill_in "Parameters", with: @function.parameters
      fill_in "Position", with: @function.position
      click_on "Create Function"

      assert_text "Function was successfully created"
      click_on "Back"
    end

    test "updating a Function" do
      visit functions_url
      click_on "Edit", match: :first

      fill_in "Deleted At", with: @function.deleted_at
      fill_in "Description", with: @function.description
      fill_in "Name", with: @function.name
      fill_in "Parameters", with: @function.parameters
      fill_in "Position", with: @function.position
      click_on "Update Function"

      assert_text "Function was successfully updated"
      click_on "Back"
    end

    test "destroying a Function" do
      visit functions_url
      page.accept_confirm do
        click_on "Destroy", match: :first
      end

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