Class: OpsManagerUiDrivers::Version14::ProductDashboard::ApplyUpdatesResult
- Inherits:
-
Object
- Object
- OpsManagerUiDrivers::Version14::ProductDashboard::ApplyUpdatesResult
show all
- Includes:
- WaitHelper
- Defined in:
- lib/ops_manager_ui_drivers/version14/product_dashboard.rb
Constant Summary
Constants included
from WaitHelper
WaitHelper::EarlyFailException, WaitHelper::SLEEP_INTERVAL
Instance Method Summary
collapse
Methods included from WaitHelper
#fail_early, #poll_up_to_mins, #poll_up_to_times
Constructor Details
Returns a new instance of ApplyUpdatesResult.
196
197
198
|
# File 'lib/ops_manager_ui_drivers/version14/product_dashboard.rb', line 196
def initialize(browser:)
@browser = browser
end
|
Instance Method Details
#completed_successfully?(retries: ENV.fetch('UI_DRIVERS_RETRIES', 30).to_i) ⇒ Boolean
212
213
214
|
# File 'lib/ops_manager_ui_drivers/version14/product_dashboard.rb', line 212
def completed_successfully?(retries: ENV.fetch('UI_DRIVERS_RETRIES', 30).to_i)
wait_for_page_to_have_text 'successfully applied', retries: retries
end
|
#has_ignorable_errors? ⇒ Boolean
200
201
202
|
# File 'lib/ops_manager_ui_drivers/version14/product_dashboard.rb', line 200
def has_ignorable_errors?
browser.has_button?('Ignore errors and start the install')
end
|
#has_install_issues?(retries: ENV.fetch('UI_DRIVERS_RETRIES', 30).to_i) ⇒ Boolean
208
209
210
|
# File 'lib/ops_manager_ui_drivers/version14/product_dashboard.rb', line 208
def has_install_issues?(retries: ENV.fetch('UI_DRIVERS_RETRIES', 30).to_i)
wait_for_page_to_have_text 'Install Issues', retries: retries
end
|
#has_nonignorable_errors? ⇒ Boolean
204
205
206
|
# File 'lib/ops_manager_ui_drivers/version14/product_dashboard.rb', line 204
def has_nonignorable_errors?
browser.has_text?('Stop and fix errors') && !has_ignorable_errors?
end
|
#wait_for_page_to_have_text(text, retries:) ⇒ Object
216
217
218
|
# File 'lib/ops_manager_ui_drivers/version14/product_dashboard.rb', line 216
def wait_for_page_to_have_text(text, retries:)
poll_up_to_times(retries) { browser.expect(browser.page.text).to browser.include(text) }
end
|