effective_test_bot 1.5.12 → 1.5.13

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: 9203029533864033577b0e25871a22cc59ddfe75fc7008dbaccc55f4bf3b6780
4
- data.tar.gz: 8749084f4ffc48685415c59101ca39f8bc43a59434a0de94ae440e16a7f3a6fa
3
+ metadata.gz: 5574c71dde9cc67e51bec9dda1ebe5042e8c4e1f24a77c56184eada72989a081
4
+ data.tar.gz: e2ccd01cd9883e04df6885a3688406e6e14e225a3d3b581ec432f354bb3bec31
5
5
  SHA512:
6
- metadata.gz: fb9e3634e05de135efb68e4090c1866c68fedede2bd368334b0984a9b37132d1ac5bd689f7edec09f62b2cebaa326b95105bf4ed9fda31c06ca1b51c87c81f66
7
- data.tar.gz: 5278bb90f77e4c54ff1c5ac6fafde73d7e7fd047e773efb35a0e3a14718f00acd4515f8e41bbcea26dcea7997f86626499156f9e48a2903c79bbd1505ee605d3
6
+ metadata.gz: 168828fe6177fc183323eaac87845a6af23ae6ff561548dd4cafa0d37173612c06c21a7f393b9e23def99eb5a7b8e9226e463a4d29760d9d84104733ce81f2e7
7
+ data.tar.gz: d42e74d0d921dd03b05a60a58f143d8269fdb6032832f20fb3814c65fd12e247a63fc2ce51efb1562d1c3b569e4f1dc73544563ca775dfb131db62c76fe99fa3
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.5.12'.freeze
2
+ VERSION = '1.5.13'.freeze
3
3
  end
@@ -58,12 +58,12 @@ module EffectiveTestBotFormHelper
58
58
  end
59
59
 
60
60
  # Fills in the Stripe Elements form
61
- def fill_stripe(card_number: '4242 4242 4242 4242', mm: '01')
61
+ def fill_stripe(card_number: '5555 5555 5555 4444', mm: '01')
62
62
  stripe_iframe = find("iframe[src^='https://js.stripe.com/v3']")
63
63
  assert stripe_iframe.present?, 'unable to find stripe iframe'
64
64
 
65
65
  within_frame(stripe_iframe) do
66
- fill_in('Card number', with: '4242424242424242')
66
+ fill_in('Card number', with: '5555555555554444')
67
67
  fill_in('MM / YY', with: mm.to_s + (Time.zone.now.year + 2).to_s.last(2))
68
68
  fill_in('CVC', with: '123')
69
69
  fill_in('ZIP', with: '90210')
@@ -83,7 +83,7 @@ module EffectiveTestBotFormHelper
83
83
  before_path = page.current_path
84
84
 
85
85
  within_frame(stripe_iframe) do
86
- fill_in('Card number', with: '4242424242424242')
86
+ fill_in('Card number', with: '5555555555554444')
87
87
  fill_in('Expiry', with: "12#{Time.zone.now.year - 1999}")
88
88
  fill_in('CVC', with: '123')
89
89
  find_submit.click
@@ -107,7 +107,7 @@ module EffectiveTestBotFormHelper
107
107
 
108
108
  within_frame(moneris_checkout_iframe) do
109
109
  fill_in('Cardholder Name', with: 'Test User')
110
- fill_in('Card Number', with: '4242424242424242')
110
+ fill_in('Card Number', with: '5555555555554444')
111
111
  fill_in('MM/YY', with: "12#{Time.zone.now.year - 1999}")
112
112
  fill_in('CVV', with: '123')
113
113
  find_submit.click
@@ -130,7 +130,8 @@ module EffectiveTestBotFormHelper
130
130
  before_path = page.current_path
131
131
 
132
132
  within_frame(deluxe_checkout_iframe) do
133
- find('input[id=ccNum]').set("4242424242424242")
133
+ assert_content 'Expiry'
134
+ find('input[id=ccNum]').set("5555555555554444")
134
135
  find('input[id=ccExpry]').set("12#{Time.zone.now.year - 1999}")
135
136
  find('input[id=ccCvv]').set("123")
136
137
  find_submit.click
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.5.12
4
+ version: 1.5.13
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: 2024-06-25 00:00:00.000000000 Z
11
+ date: 2024-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails