ops_manager_ui_drivers 2.9.3 → 2.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ops_manager_ui_drivers/animation_helper.rb +27 -0
- data/lib/ops_manager_ui_drivers/version.rb +1 -1
- data/lib/ops_manager_ui_drivers/version14/product_dashboard.rb +5 -7
- data/lib/ops_manager_ui_drivers/version17/available_products.rb +4 -0
- data/lib/ops_manager_ui_drivers/version17/product_dashboard.rb +4 -1
- data/lib/ops_manager_ui_drivers/version17/product_form.rb +6 -3
- data/lib/ops_manager_ui_drivers/version18/user_settings.rb +4 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a48ffad8b5d87ea00fb2407b93a09d1f88c94363
|
4
|
+
data.tar.gz: f8f492e852eeb7b38b868e2d51af28c4e50bf3db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04966b107ff3c9df8d05006fa1dd62d5e4eae6e3525763f607eceb62dce94e2ccd7f27360612f582370304fa5218f3561d796e5fa49dc84ba19cf0c4478329de
|
7
|
+
data.tar.gz: 121549989ce3f8cc48d863fd6083aa733590cbdb299297bf6cab71181a5ff7fc5c4406a74c1bcc177bf15f1132f524a3401e099687aa2de36bf1055721297291
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module OpsManagerUiDrivers
|
2
|
+
module AnimationHelper
|
3
|
+
def disable_css_transitions!(page_context = browser)
|
4
|
+
page_context.execute_script <<-JS
|
5
|
+
// Turn off jQuery animations.
|
6
|
+
jQuery.fx.off = true;
|
7
|
+
|
8
|
+
// Turn off CSS transitions.
|
9
|
+
var animationStyles = document.createElement('style');
|
10
|
+
animationStyles.type = 'text/css';
|
11
|
+
animationStyles.innerHTML = '* {' +
|
12
|
+
' -webkit-transition: none !important;' +
|
13
|
+
' -moz-transition: none !important;' +
|
14
|
+
' -ms-transition: none !important;' +
|
15
|
+
' -o-transition: none !important;' +
|
16
|
+
' transition: none !important;' +
|
17
|
+
' -webkit-animation: none !important;' +
|
18
|
+
' -moz-animation: none !important;' +
|
19
|
+
' -o-animation: none !important;' +
|
20
|
+
' -ms-animation: none !important;' +
|
21
|
+
' animation: none !important;' +
|
22
|
+
'}'
|
23
|
+
document.head.appendChild(animationStyles);
|
24
|
+
JS
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -1,8 +1,10 @@
|
|
1
1
|
require 'ops_manager_ui_drivers/wait_helper'
|
2
|
+
require 'ops_manager_ui_drivers/animation_helper'
|
2
3
|
|
3
4
|
module OpsManagerUiDrivers
|
4
5
|
module Version14
|
5
6
|
class ProductDashboard
|
7
|
+
include AnimationHelper
|
6
8
|
|
7
9
|
def initialize(browser:)
|
8
10
|
@browser = browser
|
@@ -40,8 +42,8 @@ module OpsManagerUiDrivers
|
|
40
42
|
|
41
43
|
def delete_product(product_name)
|
42
44
|
open_dashboard
|
45
|
+
disable_css_transitions!
|
43
46
|
browser.click_on "open-delete-#{product_name.dasherize}-modal"
|
44
|
-
wait_for_modal_css_transition_to_complete
|
45
47
|
browser.click_on "delete-#{product_name.dasherize}-action"
|
46
48
|
end
|
47
49
|
|
@@ -72,8 +74,8 @@ module OpsManagerUiDrivers
|
|
72
74
|
def delete_whole_installation
|
73
75
|
open_dashboard
|
74
76
|
browser.click_on 'toggle-installation-dropdown-action'
|
77
|
+
disable_css_transitions!
|
75
78
|
browser.click_on 'show-delete-installation-modal-action'
|
76
|
-
wait_for_modal_css_transition_to_complete
|
77
79
|
browser.click_on 'delete-installation-action'
|
78
80
|
apply_updates
|
79
81
|
end
|
@@ -108,8 +110,8 @@ module OpsManagerUiDrivers
|
|
108
110
|
|
109
111
|
def revert_pending_changes
|
110
112
|
open_dashboard
|
113
|
+
disable_css_transitions!
|
111
114
|
browser.click_on 'open-revert-installation-modal-action'
|
112
|
-
wait_for_modal_css_transition_to_complete
|
113
115
|
browser.click_on 'revert-installation-action'
|
114
116
|
end
|
115
117
|
|
@@ -184,10 +186,6 @@ module OpsManagerUiDrivers
|
|
184
186
|
end
|
185
187
|
end
|
186
188
|
|
187
|
-
def wait_for_modal_css_transition_to_complete
|
188
|
-
sleep 5 # Have to wait for the CSS shade effect
|
189
|
-
end
|
190
|
-
|
191
189
|
def open_dashboard
|
192
190
|
browser.visit '/'
|
193
191
|
end
|
@@ -1,14 +1,18 @@
|
|
1
1
|
require 'ops_manager_ui_drivers/wait_helper'
|
2
|
+
require 'ops_manager_ui_drivers/animation_helper'
|
2
3
|
|
3
4
|
module OpsManagerUiDrivers
|
4
5
|
module Version17
|
5
6
|
class AvailableProducts
|
7
|
+
include AnimationHelper
|
8
|
+
|
6
9
|
def initialize(browser:)
|
7
10
|
@browser = browser
|
8
11
|
end
|
9
12
|
|
10
13
|
def add_product_to_install(product_name)
|
11
14
|
browser.visit '/'
|
15
|
+
disable_css_transitions!
|
12
16
|
browser.find("ul.product-list li.#{product_name}.product").hover
|
13
17
|
browser.click_on "add-#{product_name}"
|
14
18
|
browser.find("#show-#{product_name}-configure-action")
|
@@ -1,8 +1,11 @@
|
|
1
1
|
require 'ops_manager_ui_drivers/version16/product_dashboard'
|
2
|
+
require 'ops_manager_ui_drivers/animation_helper'
|
2
3
|
|
3
4
|
module OpsManagerUiDrivers
|
4
5
|
module Version17
|
5
6
|
class ProductDashboard < Version16::ProductDashboard
|
7
|
+
include AnimationHelper
|
8
|
+
|
6
9
|
def import_installation_file(_file_path)
|
7
10
|
fail('Importing is no longer supported via the Product Dashboard. See Version17::Setup#import_installation_file')
|
8
11
|
end
|
@@ -14,8 +17,8 @@ module OpsManagerUiDrivers
|
|
14
17
|
|
15
18
|
def delete_product(product_name)
|
16
19
|
open_dashboard
|
20
|
+
disable_css_transitions!
|
17
21
|
browser.click_on "open-delete-#{product_name}-modal"
|
18
|
-
wait_for_modal_css_transition_to_complete
|
19
22
|
browser.click_on "delete-#{product_name}-action"
|
20
23
|
end
|
21
24
|
|
@@ -1,6 +1,10 @@
|
|
1
|
+
require 'ops_manager_ui_drivers/animation_helper'
|
2
|
+
|
1
3
|
module OpsManagerUiDrivers
|
2
4
|
module Version17
|
3
5
|
class ProductForm
|
6
|
+
include AnimationHelper
|
7
|
+
|
4
8
|
def initialize(browser:, product_name:, form_name:)
|
5
9
|
@browser = browser
|
6
10
|
@product_name = product_name
|
@@ -21,9 +25,8 @@ module OpsManagerUiDrivers
|
|
21
25
|
|
22
26
|
def generate_self_signed_cert(wildcard_domain, property_reference)
|
23
27
|
change_link = browser.first(%Q(a[data-masked-input-name="#{form_name}[#{property_reference}][private_key_pem]"]))
|
24
|
-
if change_link
|
25
|
-
|
26
|
-
end
|
28
|
+
change_link.click if change_link
|
29
|
+
disable_css_transitions!
|
27
30
|
browser.click_on 'Generate RSA Certificate'
|
28
31
|
browser.within '#rsa-certificate-form' do
|
29
32
|
browser.fill_in 'rsa_certificate[domains]', with: wildcard_domain
|
@@ -1,10 +1,14 @@
|
|
1
1
|
require 'ops_manager_ui_drivers/version17/user_settings'
|
2
|
+
require 'ops_manager_ui_drivers/animation_helper'
|
2
3
|
|
3
4
|
module OpsManagerUiDrivers
|
4
5
|
module Version18
|
5
6
|
class UserSettings < Version17::UserSettings
|
7
|
+
include AnimationHelper
|
8
|
+
|
6
9
|
def delete_whole_installation_on_next_apply_updates
|
7
10
|
browser.visit '/advanced_tools'
|
11
|
+
disable_css_transitions!
|
8
12
|
browser.click_on 'show-delete-installation-modal-action'
|
9
13
|
browser.click_on 'delete-installation-action'
|
10
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ops_manager_ui_drivers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pivotal, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -171,6 +171,7 @@ files:
|
|
171
171
|
- ci/run_specs.sh
|
172
172
|
- lib/backport_refinements.rb
|
173
173
|
- lib/ops_manager_ui_drivers.rb
|
174
|
+
- lib/ops_manager_ui_drivers/animation_helper.rb
|
174
175
|
- lib/ops_manager_ui_drivers/logger.rb
|
175
176
|
- lib/ops_manager_ui_drivers/page_helpers.rb
|
176
177
|
- lib/ops_manager_ui_drivers/version.rb
|