Sha256: c00a9efee34b3069b929d20d7d5a202bc0298fb11e7abe68ebcfdc18797751fc

Contents?: true

Size: 1.53 KB

Versions: 15

Compression:

Stored size: 1.53 KB

Contents

require 'ops_manager_ui_drivers/version14/product_dashboard'

module OpsManagerUiDrivers
  module Version15
    class ProductDashboard < Version14::ProductDashboard
      def import_installation_file(file_path)
        open_dashboard
        browser.click_on 'toggle-installation-dropdown-action'
        browser.click_on 'show-settings'
        browser.page.document.synchronize do
          browser.click_on 'close-warning'
          browser.find('#warning-modal[aria-hidden=true]')
        end
        browser.attach_file 'import[file]', file_path
        browser.click_on 'import-settings'
        browser.poll_up_to_times(20) { browser.assert_text('Successfully imported installation.') }
      end

      def product_on_dashboard?(product_name)
        open_dashboard
        browser.all("a#show-#{product_name}-configure-action").any?
      end

      def product_complete?(product_name)
        open_dashboard
        browser.all("a#show-#{product_name}-configure-action[data-progress='100']").any?
      end

      def most_recent_install_log
        open_dashboard
        if browser.all('#installation-logs li a', visible: false).any?
          base_url = browser.first('#installation-logs li a', visible: false)[:href]
          browser.visit "#{base_url}.text"
          browser.source
        end
      end

      private

      def allow_privilege_verification_errors
        return if @allowed_ignorable_errors.include?(/required datacenter privileges/i)

        @allowed_ignorable_errors << /required datacenter privileges/i
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-2.3.0 lib/ops_manager_ui_drivers/version15/product_dashboard.rb
ops_manager_ui_drivers-2.2.1 lib/ops_manager_ui_drivers/version15/product_dashboard.rb
ops_manager_ui_drivers-2.2.0 lib/ops_manager_ui_drivers/version15/product_dashboard.rb
ops_manager_ui_drivers-2.1.8 lib/ops_manager_ui_drivers/version15/product_dashboard.rb
ops_manager_ui_drivers-2.1.7 lib/ops_manager_ui_drivers/version15/product_dashboard.rb
ops_manager_ui_drivers-2.1.6 lib/ops_manager_ui_drivers/version15/product_dashboard.rb
ops_manager_ui_drivers-2.1.5 lib/ops_manager_ui_drivers/version15/product_dashboard.rb
ops_manager_ui_drivers-2.1.4 lib/ops_manager_ui_drivers/version15/product_dashboard.rb
ops_manager_ui_drivers-2.1.3 lib/ops_manager_ui_drivers/version15/product_dashboard.rb
ops_manager_ui_drivers-2.1.2 lib/ops_manager_ui_drivers/version15/product_dashboard.rb
ops_manager_ui_drivers-2.1.1 lib/ops_manager_ui_drivers/version15/product_dashboard.rb
ops_manager_ui_drivers-2.1.0 lib/ops_manager_ui_drivers/version15/product_dashboard.rb
ops_manager_ui_drivers-2.0.4 lib/ops_manager_ui_drivers/version15/product_dashboard.rb
ops_manager_ui_drivers-2.0.3 lib/ops_manager_ui_drivers/version15/product_dashboard.rb
ops_manager_ui_drivers-2.0.2 lib/ops_manager_ui_drivers/version15/product_dashboard.rb