effective_test_bot 1.5.11 → 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: ff3684f4325c106f954588537160bf2adb098f279cef78bda3973c3e7ed6b518
4
- data.tar.gz: 1c46b71f6cb039f06433fc2577ed02d74e075b90774b4cd37c4170e82e0f75fd
3
+ metadata.gz: 5574c71dde9cc67e51bec9dda1ebe5042e8c4e1f24a77c56184eada72989a081
4
+ data.tar.gz: e2ccd01cd9883e04df6885a3688406e6e14e225a3d3b581ec432f354bb3bec31
5
5
  SHA512:
6
- metadata.gz: 51f8ee341063d10213250224a5266d46ce2ac8dcf05e123c5d53afb0ef1b0c5dcde375cea28596c17b656007787d78222dc2ee9d6a824b361b087e25cdf72de3
7
- data.tar.gz: 5d4790594fa21013f9f44c5cf5b9b2ac946394d887efc02c813ee992fb4268832eeee0824ad33db7a2732ad5fdc338f5954e47210c8e4bf539e2967f1e76e760
6
+ metadata.gz: 168828fe6177fc183323eaac87845a6af23ae6ff561548dd4cafa0d37173612c06c21a7f393b9e23def99eb5a7b8e9226e463a4d29760d9d84104733ce81f2e7
7
+ data.tar.gz: d42e74d0d921dd03b05a60a58f143d8269fdb6032832f20fb3814c65fd12e247a63fc2ce51efb1562d1c3b569e4f1dc73544563ca775dfb131db62c76fe99fa3
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.5.11'.freeze
2
+ VERSION = '1.5.13'.freeze
3
3
  end
@@ -283,6 +283,8 @@ module EffectiveTestBotAssertions
283
283
  end
284
284
  end
285
285
 
286
+ return true if count == 0
287
+
286
288
  if (action || to || from || subject || body || plain_layout || html_layout).nil?
287
289
  assert ActionMailer::Base.deliveries.present?, message || "(assert_email) Expected email to have been delivered"
288
290
  return retval
@@ -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.11
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-24 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