ops_manager_ui_drivers 2.6.4 → 2.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89bfefe4070dcb38708547d1ef9d2afef5c99109
4
- data.tar.gz: fd7e0d828e653c8acadb8e2df43d19dd09f18e8a
3
+ metadata.gz: cf6b30fc5213df8495baa7107c0426857002ec2b
4
+ data.tar.gz: 438194b5107b237570a9df422ea06459c581661b
5
5
  SHA512:
6
- metadata.gz: 25c1bee1975c134f54370f982e2c66783f8d1d75a89114e69c1f2b659051d51eef2e921800a60900c2c1e37f8bfcbd84464b1c5217510ba78e12ad03a2901d72
7
- data.tar.gz: 9331e3093061cd4db5dd98b0ffdf21374112f7ef08b3eea066b7c9f2dd4ebdc6b313c318a014d4999a939719799efcae3498523b492760d1c748ae9ce58268b2
6
+ metadata.gz: df36f9bc58b119da291fa09e419ea687346ce531e39fee96cb4f2d3367e5e476a7c109f4d74d2934e84f781f2b92fbc27f62be7b1360d00f7793c81e6b44963f
7
+ data.tar.gz: 67caafefa997f429724c2839027d009609dc62ef7e0f142dec6cb1dc85238d43d25e9608bcaba147f69e3d7e629f7a3ba8b9fb554ef7ea49a3a6bbe39fb2c376
@@ -1,3 +1,3 @@
1
1
  module OpsManagerUiDrivers
2
- VERSION = '2.6.4'
2
+ VERSION = '2.7.0'
3
3
  end
@@ -1,3 +1,5 @@
1
+ require 'ops_manager_ui_drivers/wait_helper'
2
+
1
3
  module OpsManagerUiDrivers
2
4
  module Version14
3
5
  class ProductDashboard
@@ -2,19 +2,21 @@ module OpsManagerUiDrivers
2
2
  module Version17
3
3
  class ProductErrands
4
4
  def initialize(browser:, product_name:)
5
- @browser = browser
5
+ @browser = browser
6
6
  @product_name = product_name
7
7
  end
8
8
 
9
9
  def enable_errand(errand_name)
10
10
  open_form
11
- browser.find_field("errands_collection_enabled_names_#{errand_name}").set(true)
11
+ set_check_box("pre_delete_errands_enabled_names_#{errand_name}", true)
12
+ set_check_box("post_deploy_errands_enabled_names_#{errand_name}", true)
12
13
  save_form
13
14
  end
14
15
 
15
16
  def disable_errand(errand_name)
16
17
  open_form
17
- browser.find_field("errands_collection_enabled_names_#{errand_name}").set(false)
18
+ set_check_box("pre_delete_errands_enabled_names_#{errand_name}", false)
19
+ set_check_box("post_deploy_errands_enabled_names_#{errand_name}", false)
18
20
  save_form
19
21
  end
20
22
 
@@ -37,6 +39,11 @@ module OpsManagerUiDrivers
37
39
  private
38
40
 
39
41
  attr_reader :browser, :product_name
42
+
43
+ def set_check_box(name, value)
44
+ check_box = browser.first(name)
45
+ check_box.set(value) if check_box
46
+ end
40
47
  end
41
48
  end
42
49
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_manager_ui_drivers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.4
4
+ version: 2.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal, Inc.
@@ -286,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  version: '0'
287
287
  requirements: []
288
288
  rubyforge_project:
289
- rubygems_version: 2.5.1
289
+ rubygems_version: 2.4.5.1
290
290
  signing_key:
291
291
  specification_version: 4
292
292
  summary: Capybara helpers for configuring Pivotal Ops Manager