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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 534aa48a763f848d9407f27fe1187a1c272a740be497ef0178a2bc34535a4ecb
4
- data.tar.gz: 7c4133d51d0fc2a97536ac401c62cfdeec9fccdfff1c40d10ddd734c1563864e
3
+ metadata.gz: 116adaca4228be8533d337f92a96fcdf4d28fddc776a150fe559b8eb4281beb3
4
+ data.tar.gz: af5084bcea6618b5d6406f83f9af3fb7987bafc833589f21859104020012bb6a
5
5
  SHA512:
6
- metadata.gz: ea9b3e06789011460020d1984e992295981a35a0617ba5110fb84d7b4206ae4427937a2ae7f58224d41defc578f9e2e21f6ff175ca3a8ae775a8e2a17334c02b
7
- data.tar.gz: 34e0a6fcd8aa7836191820c3951ad97d7dffdbd4b9ca6977c243289f06a241dff01c1c72b24434c8479f43aa3ac55ad71ee60707d51cdc2aaf58c1a4ac5cd5aa
6
+ metadata.gz: 69040edaa53da1a219372d6bfbd355c6b9aa691e18b71aa8c3d4fc6b9eb8e0864590b67b1ba8731097e0f5b6ef2b3c0459bf25019651c95797f759e22651fa91
7
+ data.tar.gz: d9158385fed96c09559d4e0954d1e5a274556789ab61cd2c09310892444beb17a4430a4bc9e448694d3fc8eb3da741d7f36f653f537c45e650a9ad433a76c31d
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.1.18'.freeze
2
+ VERSION = '1.1.19'.freeze
3
3
  end
@@ -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.18
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-03 00:00:00.000000000 Z
11
+ date: 2020-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails