Sha256: c7c5ce51d7500a896e5a2c015376289f496eeb4a05fff4c7914eeb2cf23d3468

Contents?: true

Size: 968 Bytes

Versions: 14

Compression:

Stored size: 968 Bytes

Contents

require 'test_plugin_helper'
require 'integration_test_helper'

module ForemanSalt
  class SaltEnvironmentTest < IntegrationTestWithJavascript
    test 'index page' do
      FactoryBot.create_list :salt_environment, 5
      assert_index_page(salt_environments_path, 'Salt Environment', 'New Salt Environment')
    end

    test 'create new page' do
      assert_new_button(salt_environments_path, 'New Salt Environment', new_salt_environment_path)
      fill_in 'foreman_salt_salt_environment_name', :with => 'common'
      assert_submit_button(salt_environments_path)
      assert page.has_link? 'common'
    end

    test 'edit page' do
      salt_environment = FactoryBot.create :salt_environment
      visit salt_environments_path
      click_link salt_environment.name
      fill_in 'foreman_salt_salt_environment_name', :with => 'some_other_name'
      assert_submit_button(salt_environments_path)
      assert page.has_link? 'some_other_name'
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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