effective_test_bot 1.3.14 → 1.3.16
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: d1a731d7a57b5c8061355f85e419e395c1416aced9f7d792c03fe7175a69d8d9
|
4
|
+
data.tar.gz: 0201cef7f0861f85fa60866b13efd89b03bedf720e4c82f70b800dd8ee80de19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62c988c9f97f160e89740b056697de7b9a6784cbcab1c56e591e451f84c72f2493683977b361d189be89dadb6ebd1512fbb61bac9305fb0ade2bdc526bc070e5
|
7
|
+
data.tar.gz: acda95b5707731b6b841cbf989935da2264ff7b1c1f057cb02b22fe2db06a1b185f358ef491b27eac8005deb2e421e0128566095de3455a2d29378d83e856412
|
@@ -52,6 +52,8 @@ module EffectiveTestBotFormFaker
|
|
52
52
|
max = (Float(field['max']) rescue 1000)
|
53
53
|
number = Random.new.rand(min..max)
|
54
54
|
number.kind_of?(Float) ? number.round(2) : number
|
55
|
+
elsif classes.include?('url') || classes.include?('effective_url') || attribute.include?('url')
|
56
|
+
'https://www.slashdot.org'
|
55
57
|
elsif attribute.include?('first_name')
|
56
58
|
Faker::Name.first_name
|
57
59
|
elsif attribute.include?('last_name')
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'timeout'
|
2
4
|
|
3
5
|
module EffectiveTestBotFormHelper
|
@@ -61,7 +63,7 @@ module EffectiveTestBotFormHelper
|
|
61
63
|
assert stripe_iframe.present?, 'unable to find stripe iframe'
|
62
64
|
|
63
65
|
within_frame(stripe_iframe) do
|
64
|
-
card_number.to_s.chars.each { |key|
|
66
|
+
card_number.to_s.chars.each { |key| first("input[name=cardnumber]").send_keys(key) }
|
65
67
|
fill_in('MM / YY', with: mm.to_s + (Time.zone.now.year + 2).to_s.last(2))
|
66
68
|
fill_in('CVC', with: '123')
|
67
69
|
fill_in('ZIP', with: '90210')
|
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.3.
|
4
|
+
version: 1.3.16
|
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-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|