Sha256: a4caec4a8773b54063220aa18d835aa4814e2ae5df139cb659a3dd870bb39601

Contents?: true

Size: 896 Bytes

Versions: 29

Compression:

Stored size: 896 Bytes

Contents

require 'integration_puppet_helper'
require 'integration/shared/host_finders'
require 'integration/shared/host_orchestration_stubs'

module ForemanPuppet
  class DashboardJSTest < IntegrationTestWithJavascript
    setup do
      Dashboard::Manager.reset_user_to_default(users(:admin))
      Setting[:outofsync_interval] = 35
    end

    context 'with origin' do
      setup do
        Setting[:puppet_out_of_sync_disabled] = true
      end

      context 'out of sync disabled' do
        test 'has no out of sync link' do
          visit dashboard_path
          wait_for_ajax
          within "li[data-name='Host Configuration Status for Puppet']" do
            assert page.has_no_link?('Out of sync hosts')
            assert page.has_no_link?('Good host reports in the last')
            assert page.has_link?('Good host with reports')
          end
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
foreman_puppet-8.1.0 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-8.0.0 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-6.4.0 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-7.0.0 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-6.3.0 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-6.2.0 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-6.1.1 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-5.1.3 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-6.1.0 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-6.0.1 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-6.0.0 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-5.1.2 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-4.1.1 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-5.1.1 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-5.1.0 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-4.1.0 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-4.0.4 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-5.0.0 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-4.0.3 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-4.0.2 test/integration/foreman_puppet/dashboard_js_test.rb