itms_automation 2.7.4 → 2.7.9

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
  SHA256:
3
- metadata.gz: 7a0b67a5af9ae7b5abab5f2993983dd70c104608d1895aeed6ad63a034f1f8e0
4
- data.tar.gz: 10cdb6858de34421b696c131553f2247663d785cdf2f648bccdfd20a28763aea
3
+ metadata.gz: c5e282b5a081d1f9e2c1269654eb5c6cda081f780d46e04f47b5ae19276d100c
4
+ data.tar.gz: 396fbf13172968da44b8d43713a8e56cddedbc7639b27cc6d9bbb3cef907d710
5
5
  SHA512:
6
- metadata.gz: c2e9ddac84ad149c3cb5d71eaae39cf0710d150d35f0479095696134a5ba3cc2e1bd4f83c40cc2f3c5991c2c69f04e41429ee60fe582aa7000b90c803ab9295c
7
- data.tar.gz: 9a628c5bc6d8d62ee7ec9f68756aed60017d7be67585d0ca604c2fd28fbf024b193dd39d240c1f03abb4a4231b9d6f5d013ffd64b9fd081136ee65d9bd3e4f7c
6
+ metadata.gz: 1ee72f1c7100ca8dd493397ea0d0a7fb52c9b779e538a1c1d6d879b41b93dbabbaf04554dbbb70368f148a6745bc33c401768fc99c85888e8033bd89ed88e7b5
7
+ data.tar.gz: 1fc80596db73535c573a844cf284f730125ee93a7d3966bb40acb69bb38c7bd777e425ad67221ae9ee045ce4ce500f975d5ea22cc01be9682566179334ac8916
@@ -105,12 +105,14 @@ end
105
105
  def assert(var_name, value)
106
106
  if (value == "true" || value == "false")
107
107
  _value = value
108
- else elseif (value == '0' || !!number_or_nil(value)) {
108
+ else elseif (value == '0' || !!number_or_nil(value))
109
109
  _value = value
110
110
  end
111
- result = _value
112
- ? expect($vars[var_name]).to eq(_value)
113
- : expect($vars[var_name]).to eq(value)
111
+ result = if _value
112
+ expect($vars[var_name]).to eq(_value)
113
+ else
114
+ expect($vars[var_name]).to eq(value)
115
+ end
114
116
  end
115
117
 
116
118
  # Method to verify title
@@ -195,14 +197,16 @@ def verify_selected_value
195
197
  end
196
198
 
197
199
  def verify(var_name, value)
198
- if (value == "true" || value == "false") {
200
+ if (value == "true" || value == "false")
199
201
  _value = value
200
- } elseif (value == '0' || !!number_or_nil(value)) {
202
+ else elseif (value == '0' || !!number_or_nil(value))
201
203
  _value = value
202
- }
203
- result = _value
204
- ? expect($vars[var_name]).to eq(_value)
205
- : expect($vars[var_name]).to eq(value)
204
+ end
205
+ result = if _value
206
+ expect($vars[var_name]).to eq(_value)
207
+ else
208
+ expect($vars[var_name]).to eq(value)
209
+ end
206
210
  end
207
211
 
208
212
  # Method to find difference between images
@@ -76,17 +76,17 @@ def edit_content(element, text)
76
76
  $driver.execute_script("if (arguments[0].contentEditable === 'true') {arguments[0].innerText = '#{text}'}", found_element)
77
77
  end
78
78
 
79
- def add_selection(label)
79
+ def add_selection(element, label)
80
80
  found_element = find_object(element)
81
81
  found_element.find_element(:xpath, "//option[. = '#{label}']").click
82
82
  end
83
83
 
84
- def remove_selection
84
+ def remove_selection(element, label)
85
85
  found_element = find_object(element)
86
86
  found_element.find_element(:xpath, "//option[. = '#{label}']").click
87
87
  end
88
88
 
89
- def select
89
+ def select(element)
90
90
  found_element = find_object(element)
91
91
  found_element.find_element(:xpath, "//option[. = '#{label}']").click
92
92
  end
@@ -1,5 +1,5 @@
1
1
  module ITMS
2
2
  module Automation
3
- VERSION = '2.7.4'
3
+ VERSION = '2.7.9'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: itms_automation
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.4
4
+ version: 2.7.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - INFOdation
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-12 00:00:00.000000000 Z
11
+ date: 2021-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -16,20 +16,20 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 3.1.2
19
+ version: 5.3.0
20
20
  - - "~>"
21
21
  - !ruby/object:Gem::Version
22
- version: 3.1.2
22
+ version: 5.3.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 3.1.2
29
+ version: 5.3.0
30
30
  - - "~>"
31
31
  - !ruby/object:Gem::Version
32
- version: 3.1.2
32
+ version: 5.3.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: webdrivers
35
35
  requirement: !ruby/object:Gem::Requirement