Sha256: d70ac3673cf19036b0d5bae9d58f51530b66f6dd6fb332d9290feb8b769ddbd3

Contents?: true

Size: 440 Bytes

Versions: 16

Compression:

Stored size: 440 Bytes

Contents

# This calls the main test_helper in Foreman-core
require 'test_helper'

def assert_row_button(index_path, link_text, button_text, dropdown = false)
  visit index_path
  within(:xpath, "//tr[contains(.,'#{link_text}')]") do
    find('span.caret').click if dropdown
    click_link(button_text)
  end
end

# Add plugin to FactoryBot's paths
FactoryBot.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
FactoryBot.reload

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
foreman_salt-14.0.0 test/test_plugin_helper.rb
foreman_salt-13.2.4 test/test_plugin_helper.rb
foreman_salt-13.2.3 test/test_plugin_helper.rb
foreman_salt-13.2.2 test/test_plugin_helper.rb
foreman_salt-13.2.1 test/test_plugin_helper.rb
foreman_salt-13.2.0 test/test_plugin_helper.rb
foreman_salt-13.1.0 test/test_plugin_helper.rb
foreman_salt-13.0.0 test/test_plugin_helper.rb
foreman_salt-12.0.0 test/test_plugin_helper.rb
foreman_salt-11.0.1 test/test_plugin_helper.rb
foreman_salt-11.0.0 test/test_plugin_helper.rb
foreman_salt-10.3.1 test/test_plugin_helper.rb
foreman_salt-10.3.0 test/test_plugin_helper.rb
foreman_salt-10.2.0 test/test_plugin_helper.rb
foreman_salt-10.1.0 test/test_plugin_helper.rb
foreman_salt-10.0.0 test/test_plugin_helper.rb