ops_manager_ui_drivers 2.18.0 → 2.19.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e5ecc135ac4b2b7f1c90b9968a66b88bf6e80ef
|
4
|
+
data.tar.gz: 795088ef88ecebbdb2682fa414e4da2758d0fe95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9935b1bc898f47ba6398ed653f459b595407f31e60975db0e4bf82793ad988602868532164839eb002f555f3c89c3abf00bb940ff446d505f26022e5b1a2627c
|
7
|
+
data.tar.gz: 9408d18557bdcd6c3a5ba56acd5ae12d64989cfef16bb4e4afb7a5e80a4a5afc8ef64d66472f422b0cb94c2439ba8d24065a53a72095c5a21a3b9441e322b338
|
data/lib/ops_manager_ui_drivers/version16/bosh_product_sections/bosh_product_form_section.rb
CHANGED
@@ -13,9 +13,9 @@ module OpsManagerUiDrivers
|
|
13
13
|
@browser.click_on "show-#{form_name}-action"
|
14
14
|
end
|
15
15
|
|
16
|
-
def save_form
|
16
|
+
def save_form(allowed_errors=[])
|
17
17
|
@browser.click_on 'Save'
|
18
|
-
|
18
|
+
!@browser.all('.flash-message.success').empty? || only_has_allowed_verification_errors(allowed_errors)
|
19
19
|
end
|
20
20
|
|
21
21
|
def set_fields(fields)
|
@@ -26,6 +26,21 @@ module OpsManagerUiDrivers
|
|
26
26
|
|
27
27
|
private
|
28
28
|
|
29
|
+
def only_has_allowed_verification_errors(allowed_errors)
|
30
|
+
flash_errors = @browser.all('.flash-message.error')
|
31
|
+
unexpected_errors = []
|
32
|
+
|
33
|
+
if flash_errors.any?
|
34
|
+
unexpected_errors = flash_errors.reject do |error|
|
35
|
+
allowed_errors.select do |expected_error|
|
36
|
+
error.text =~ expected_error
|
37
|
+
end.any?
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
unexpected_errors.empty?
|
42
|
+
end
|
43
|
+
|
29
44
|
def set_field(field, value)
|
30
45
|
last_field(field).set(value)
|
31
46
|
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.
|
4
|
+
version: 2.19.0
|
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-
|
11
|
+
date: 2016-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|