Sha256: 84b90ddd87d2d845bf1ef16b72d570627098b5df38875d07176522269f43b28c

Contents?: true

Size: 443 Bytes

Versions: 15

Compression:

Stored size: 443 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 FactoryGirl's paths
FactoryGirl.definition_file_paths << File.join(File.dirname(__FILE__), 'factories')
FactoryGirl.reload

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
foreman_salt-8.0.4 test/test_plugin_helper.rb
foreman_salt-9.0.1 test/test_plugin_helper.rb
foreman_salt-9.0.0 test/test_plugin_helper.rb
foreman_salt-8.0.3 test/test_plugin_helper.rb
foreman_salt-8.0.2 test/test_plugin_helper.rb
foreman_salt-8.0.1 test/test_plugin_helper.rb
foreman_salt-7.0.3 test/test_plugin_helper.rb
foreman_salt-8.0.0 test/test_plugin_helper.rb
foreman_salt-7.0.2 test/test_plugin_helper.rb
foreman_salt-6.0.1 test/test_plugin_helper.rb
foreman_salt-7.0.1 test/test_plugin_helper.rb
foreman_salt-7.0.0 test/test_plugin_helper.rb
foreman_salt-6.0.0 test/test_plugin_helper.rb
foreman_salt-5.0.1 test/test_plugin_helper.rb
foreman_salt-5.0.0 test/test_plugin_helper.rb