effective_test_bot 1.5.1 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5d2b6ddf1e130f21cdd75c9de378f53d634cc6653ebb7f3099cacd8107f3167
|
4
|
+
data.tar.gz: 0ff7e7d9f70e8c79025d98dc545b445a8dce7cc3af7a2fcd6fbc5b9556e8c9e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 979b5895d9261f028a5642e76aefa2d98a2394f21b213b6bd1343cc46b9505bae18f3f013c6675fe723e6b1df5794db8043eea9514ed1ab39a707e6bc29f7bd3
|
7
|
+
data.tar.gz: 6031706d32bddbdf9daffd54a7a83f2dcb3bf78712745496dcb5a7b91ec3c81c9ffb162f8265f88828c88ad92e6b912ae55d95bb92cf314a5dc31bd24d674966
|
@@ -151,9 +151,14 @@ module EffectiveTestBotFormFiller
|
|
151
151
|
def fill_input_checkbox(field, value)
|
152
152
|
return if [nil, false].include?(value)
|
153
153
|
|
154
|
+
if field['class'].to_s.include?('custom-control-input')
|
155
|
+
label = all("label[for='#{field['id']}']", wait: false).first
|
156
|
+
return label.click() if label
|
157
|
+
end
|
158
|
+
|
154
159
|
begin
|
155
160
|
field.set(value)
|
156
|
-
rescue => e
|
161
|
+
rescue Exception => e
|
157
162
|
label = all("label[for='#{field['id']}']", wait: false).first
|
158
163
|
label.click() if label
|
159
164
|
end
|
@@ -162,9 +167,14 @@ module EffectiveTestBotFormFiller
|
|
162
167
|
def fill_input_radio(field, value)
|
163
168
|
return if [nil, false].include?(value)
|
164
169
|
|
170
|
+
if field['class'].to_s.include?('custom-control-input')
|
171
|
+
label = all("label[for='#{field['id']}']", wait: false).first
|
172
|
+
return label.click() if label
|
173
|
+
end
|
174
|
+
|
165
175
|
begin
|
166
176
|
field.set(value)
|
167
|
-
rescue => e
|
177
|
+
rescue Exception => e
|
168
178
|
label = all("label[for='#{field['id']}']", wait: false).first
|
169
179
|
label.click() if label
|
170
180
|
end
|
@@ -108,7 +108,7 @@ module EffectiveTestBotFormHelper
|
|
108
108
|
within_frame(moneris_checkout_iframe) do
|
109
109
|
fill_in('Cardholder Name', with: 'Test User')
|
110
110
|
fill_in('Card Number', with: '4242424242424242')
|
111
|
-
fill_in('
|
111
|
+
fill_in('MM/YY', with: "12#{Time.zone.now.year - 1999}")
|
112
112
|
fill_in('CVV', with: '123')
|
113
113
|
find_submit.click
|
114
114
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_test_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|