Sha256: 51fd24611375d79c0bf96d3494eba4330c43ae79a7c23042633dadbcde84332a

Contents?: true

Size: 923 Bytes

Versions: 7

Compression:

Stored size: 923 Bytes

Contents

require 'test_puppet_helper'
require 'integration_test_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

7 entries across 7 versions & 1 rubygems

Version Path
foreman_puppet-2.0.7 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-2.0.6 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-2.0.5 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-2.0.4 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-2.0.3 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-2.0.2 test/integration/foreman_puppet/dashboard_js_test.rb
foreman_puppet-2.0.0 test/integration/foreman_puppet/dashboard_js_test.rb