Sha256: fa60b52e041258d45019e10ed596b5c11986869c8dede502e8ac1f4a5cda53dc

Contents?: true

Size: 772 Bytes

Versions: 7

Compression:

Stored size: 772 Bytes

Contents

require 'test_plugin_helper'
require 'integration_test_helper'

module ForemanSalt
  class SaltVariableTest < IntegrationTestWithJavascript
    setup do
      User.current = users :admin
    end

    test 'index page' do
      FactoryBot.create_list :salt_variable, 5
      assert_index_page(salt_variables_path, 'Salt Variable', 'New Salt Variable')
    end

    test 'create new page' do
      state = FactoryBot.create :salt_module
      assert_new_button(salt_variables_path, 'New Salt Variable', new_salt_variable_path)
      fill_in 'foreman_salt_salt_variable_key', :with => 'mykey'
      select2(state.name, :from => 'foreman_salt_salt_variable_salt_module_id')
      assert_submit_button(salt_variables_path)
      assert page.has_link? 'mykey'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman_salt-14.0.0 test/integration/salt_variable_test.rb
foreman_salt-13.2.4 test/integration/salt_variable_test.rb
foreman_salt-13.2.3 test/integration/salt_variable_test.rb
foreman_salt-13.2.2 test/integration/salt_variable_test.rb
foreman_salt-13.2.1 test/integration/salt_variable_test.rb
foreman_salt-13.2.0 test/integration/salt_variable_test.rb
foreman_salt-13.1.0 test/integration/salt_variable_test.rb