effective_test_bot 1.1.19 → 1.1.20
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3b08d9844b09467fa3cf52e22b6f222eb9fea70ea191c74b8dde0551eeb7ff9
|
4
|
+
data.tar.gz: ecaba06f8fc693177a64d40e07a1e889f0778f47e2c95c91fd01af79b399819a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 046a7cfef56def1f21c26f6eabc2ffe2f5bda06fc338450e48f255344e02b9831d2bcb035d914ec5408ad0c8bd65ffe6db48d70a0015a0a7090d123ba2b5f310
|
7
|
+
data.tar.gz: b1da96c09ef212306805e9319830137bfea31f53cef631b216d30d7b0cb2af1b809d69ae247c9d5e1bf1b5167254faf3ee5a856748505839a3ae89bbda2c16f4
|
@@ -44,13 +44,14 @@ module EffectiveTestBotFormHelper
|
|
44
44
|
true
|
45
45
|
end
|
46
46
|
|
47
|
-
|
47
|
+
# Fills in the Stripe Elements form
|
48
|
+
def fill_stripe(card_number: '4242 4242 4242 4242', mm: '01')
|
48
49
|
stripe_iframe = find("iframe[src^='https://js.stripe.com/v3']")
|
49
50
|
assert stripe_iframe.present?, 'unable to find stripe iframe'
|
50
51
|
|
51
52
|
within_frame(stripe_iframe) do
|
52
|
-
|
53
|
-
fill_in('MM / YY', with: mm.to_s + (Time.zone.now.year +
|
53
|
+
card_number.to_s.chars.each { |key| find_field('Card number').send_keys(key) }
|
54
|
+
fill_in('MM / YY', with: mm.to_s + (Time.zone.now.year + 2).to_s.last(2))
|
54
55
|
fill_in('CVC', with: '123')
|
55
56
|
fill_in('ZIP', with: '90210')
|
56
57
|
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.1.
|
4
|
+
version: 1.1.20
|
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: 2020-04-
|
11
|
+
date: 2020-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|