Sha256: f2d70b2b53526912faf24e79c31b0a97c3efa8c399989f025c0ce6b55360eb1a

Contents?: true

Size: 1.16 KB

Versions: 5

Compression:

Stored size: 1.16 KB

Contents

require "application_system_test_case"

class CodeLinksTest < ApplicationSystemTestCase
  setup do
    @code_link = code_links(:one)
  end

  test "visiting the index" do
    visit code_links_url
    assert_selector "h1", text: "Code Links"
  end

  test "creating a Code link" do
    visit code_links_url
    click_on "New Code Link"

    fill_in "Code link type", with: @code_link.code_link_type_id
    fill_in "Description", with: @code_link.description
    fill_in "Link", with: @code_link.link
    click_on "Create Code link"

    assert_text "Code link was successfully created"
    click_on "Back"
  end

  test "updating a Code link" do
    visit code_links_url
    click_on "Edit", match: :first

    fill_in "Code link type", with: @code_link.code_link_type_id
    fill_in "Description", with: @code_link.description
    fill_in "Link", with: @code_link.link
    click_on "Update Code link"

    assert_text "Code link was successfully updated"
    click_on "Back"
  end

  test "destroying a Code link" do
    visit code_links_url
    page.accept_confirm do
      click_on "Destroy", match: :first
    end

    assert_text "Code link was successfully destroyed"
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
jester-data-8.0.0 test/system/code_links_test.rb
ezii-os-5.2.1 test/system/code_links_test.rb
ezii-os-2.0.1 test/system/code_links_test.rb
ezii-os-1.1.0 test/system/code_links_test.rb
ezii-os-1.0.0 test/system/code_links_test.rb