Sha256: 75a00d83e79856975f8cdb1fd192592df9c2c914e2bf7139aaf8ad0a3d78b09b

Contents?: true

Size: 440 Bytes

Versions: 10

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('i.caret').click if dropdown
    click_link(button_text)
  end
end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_salt-4.0.1 test/test_plugin_helper.rb
foreman_salt-4.0.0 test/test_plugin_helper.rb
foreman_salt-3.0.2 test/test_plugin_helper.rb
foreman_salt-3.0.1 test/test_plugin_helper.rb
foreman_salt-3.0.0 test/test_plugin_helper.rb
foreman_salt-2.1.0 test/test_plugin_helper.rb
foreman_salt-2.0.2 test/test_plugin_helper.rb
foreman_salt-2.0.1 test/test_plugin_helper.rb
foreman_salt-2.0.0 test/test_plugin_helper.rb
foreman_salt-1.1.1 test/test_plugin_helper.rb