effective_test_bot 1.5.12 → 1.5.14

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: 9203029533864033577b0e25871a22cc59ddfe75fc7008dbaccc55f4bf3b6780
4
- data.tar.gz: 8749084f4ffc48685415c59101ca39f8bc43a59434a0de94ae440e16a7f3a6fa
3
+ metadata.gz: 48568a1f585b99331028d6fbf621e1c6a767744f193b04dddffb05da4eac0a8a
4
+ data.tar.gz: 897497e6b9ba922fd8428fccbe238e24836594054230dd2f2f26dfb6d6bbc2b0
5
5
  SHA512:
6
- metadata.gz: fb9e3634e05de135efb68e4090c1866c68fedede2bd368334b0984a9b37132d1ac5bd689f7edec09f62b2cebaa326b95105bf4ed9fda31c06ca1b51c87c81f66
7
- data.tar.gz: 5278bb90f77e4c54ff1c5ac6fafde73d7e7fd047e773efb35a0e3a14718f00acd4515f8e41bbcea26dcea7997f86626499156f9e48a2903c79bbd1505ee605d3
6
+ metadata.gz: 05c3c3f8b01ad0478e5959bc71ae1aefafda7b8d17d22bedd9f96c016a550aeaf64aa54d33a0a83332674badfa849bf9a9cd7d7e030df92af99633b796313d58
7
+ data.tar.gz: '06884d1848ee2ba008e2133a1cfe265579cc114425157479cb106bb21960a475e6efc032387a487fe0db97dda372934ff71bc8049df78565ae6831d8740bfecd'
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.5.12'.freeze
2
+ VERSION = '1.5.14'.freeze
3
3
  end
@@ -190,7 +190,7 @@ module EffectiveTestBotAssertions
190
190
  # assert_assigns :current_user, 'there should a current user'
191
191
  def assert_assigns(key = nil, value = nil, message: nil)
192
192
  if key.present? && value.present?
193
- assert_equal value, assigns[key.to_s], message || "(assigns) Expected assigns[#{key}] to equal #{value}. Instead, it was: #{value}"
193
+ assert_equal value, assigns[key.to_s], message || "(assigns) Expected assigns[#{key}] to equal #{value.inspect}. Instead, it was: #{assigns[key].inspect}"
194
194
  elsif key.present?
195
195
  assert assigns[key.to_s].present?, message || "(assigns) Expected @#{key} to be assigned"
196
196
  else
@@ -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.14
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: 2025-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails