Sha256: 1415be94449c1cc8840c58226eb365d0f74a331484d5d759cfd319c3a18aa06d

Contents?: true

Size: 1.17 KB

Versions: 2

Compression:

Stored size: 1.17 KB

Contents

require 'ops_manager_ui_drivers/version17/product_dashboard'

module OpsManagerUiDrivers
  module Version18
    class ProductDashboard < Version17::ProductDashboard
      def delete_whole_installation
        method_deprecated!
      end

      def delete_installation_available?
        method_deprecated!
      end

      def delete_unused_products
        open_dashboard
        disable_css_transitions!
        @browser.find('a#delete_unused_products_modal').trigger('click')
        @browser.find('button#delete_unused_products').trigger('click')
      end

      def reset_state(ops_manager)
        revert_pending_changes if revert_available?
        if ops_manager.settings_page.delete_installation_available?
          ops_manager.settings_page.delete_whole_installation_on_next_apply_updates
          apply_updates
          browser.poll_up_to_mins(15) do
            browser.expect(ops_manager.state_change_progress).to browser.be_state_change_success
          end
        end
      end

      private

      def method_deprecated!
        raise NotImplementedError, 'This method has been removed. You can find the new version on the UserSettings class'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ops_manager_ui_drivers-2.11.0 lib/ops_manager_ui_drivers/version18/product_dashboard.rb
ops_manager_ui_drivers-2.10.9 lib/ops_manager_ui_drivers/version18/product_dashboard.rb