effective_test_bot 1.1.18 → 1.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/effective_test_bot/version.rb +1 -1
- data/test/support/effective_test_bot_form_helper.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 116adaca4228be8533d337f92a96fcdf4d28fddc776a150fe559b8eb4281beb3
|
4
|
+
data.tar.gz: af5084bcea6618b5d6406f83f9af3fb7987bafc833589f21859104020012bb6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69040edaa53da1a219372d6bfbd355c6b9aa691e18b71aa8c3d4fc6b9eb8e0864590b67b1ba8731097e0f5b6ef2b3c0459bf25019651c95797f759e22651fa91
|
7
|
+
data.tar.gz: d9158385fed96c09559d4e0954d1e5a274556789ab61cd2c09310892444beb17a4430a4bc9e448694d3fc8eb3da741d7f36f653f537c45e650a9ad433a76c31d
|
@@ -44,6 +44,20 @@ module EffectiveTestBotFormHelper
|
|
44
44
|
true
|
45
45
|
end
|
46
46
|
|
47
|
+
def fill_stripe(mm: '01')
|
48
|
+
stripe_iframe = find("iframe[src^='https://js.stripe.com/v3']")
|
49
|
+
assert stripe_iframe.present?, 'unable to find stripe iframe'
|
50
|
+
|
51
|
+
within_frame(stripe_iframe) do
|
52
|
+
fill_in('Card number', with: '4242424242424242')
|
53
|
+
fill_in('MM / YY', with: mm.to_s + (Time.zone.now.year + 1).to_s.last(2))
|
54
|
+
fill_in('CVC', with: '123')
|
55
|
+
fill_in('ZIP', with: '90210')
|
56
|
+
end
|
57
|
+
|
58
|
+
true
|
59
|
+
end
|
60
|
+
|
47
61
|
# submit_stripe(content: 'Thank you!'), or
|
48
62
|
#
|
49
63
|
# submit_stripe
|
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.19
|
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-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|