effective_test_bot 1.1.19 → 1.1.20

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: 116adaca4228be8533d337f92a96fcdf4d28fddc776a150fe559b8eb4281beb3
4
- data.tar.gz: af5084bcea6618b5d6406f83f9af3fb7987bafc833589f21859104020012bb6a
3
+ metadata.gz: d3b08d9844b09467fa3cf52e22b6f222eb9fea70ea191c74b8dde0551eeb7ff9
4
+ data.tar.gz: ecaba06f8fc693177a64d40e07a1e889f0778f47e2c95c91fd01af79b399819a
5
5
  SHA512:
6
- metadata.gz: 69040edaa53da1a219372d6bfbd355c6b9aa691e18b71aa8c3d4fc6b9eb8e0864590b67b1ba8731097e0f5b6ef2b3c0459bf25019651c95797f759e22651fa91
7
- data.tar.gz: d9158385fed96c09559d4e0954d1e5a274556789ab61cd2c09310892444beb17a4430a4bc9e448694d3fc8eb3da741d7f36f653f537c45e650a9ad433a76c31d
6
+ metadata.gz: 046a7cfef56def1f21c26f6eabc2ffe2f5bda06fc338450e48f255344e02b9831d2bcb035d914ec5408ad0c8bd65ffe6db48d70a0015a0a7090d123ba2b5f310
7
+ data.tar.gz: b1da96c09ef212306805e9319830137bfea31f53cef631b216d30d7b0cb2af1b809d69ae247c9d5e1bf1b5167254faf3ee5a856748505839a3ae89bbda2c16f4
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.1.19'.freeze
2
+ VERSION = '1.1.20'.freeze
3
3
  end
@@ -44,13 +44,14 @@ module EffectiveTestBotFormHelper
44
44
  true
45
45
  end
46
46
 
47
- def fill_stripe(mm: '01')
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
- fill_in('Card number', with: '4242424242424242')
53
- fill_in('MM / YY', with: mm.to_s + (Time.zone.now.year + 1).to_s.last(2))
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.19
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-07 00:00:00.000000000 Z
11
+ date: 2020-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails