effective_test_bot 1.7.4 → 1.7.5

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: e7c04478a767e37f68441f347c2413754b31f09475b4809c8813279397960eed
4
- data.tar.gz: 62bc9568aeb4f53af43bde543d127ccc17cfe3e32c90d86ad24eb07cfc48acb7
3
+ metadata.gz: 7fe9b29d95d569210cc29be16338fc09a937be97f7bc120d08cf4f88d0cf8dbe
4
+ data.tar.gz: ae2d7efde341f9daf06df45208553e3b8fcd3e3a6b50f7691c3a95d8ed6466b9
5
5
  SHA512:
6
- metadata.gz: 47834d04297ee3fd1d482ff9ceac0c6d146103bf6430f8dab8b46f45f6c9b9c354dcf2aec38fa89de42adcf51e8d88019be22ba447ec1b0b0e98dc7394bb214d
7
- data.tar.gz: 118ef9f2af65fc5071b69aad391818b303f7ef8b85ae000369803e8c156ded16f269cc5deeb0f2e44bd58daf1497111f0dda48ff0dcd1747245fe441f1e645b8
6
+ metadata.gz: 2d8d8a47b5ca97892884d53d298bbc30e148850e0b8d8288d12b8433266f43039265abde3df705f8a2e2aaaed889e70c1ba3bf0c2d3e16c4b9ad9f03c5f9cb7c
7
+ data.tar.gz: a90e6b511355ff80f6e01532b96e2f66cbf00b6075255cfc841b9a9a2e649f65f7b4e0db9881eafcbb64152ab428955678fc4064039943fc40e1ac8ce19514c5
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.7.4'.freeze
2
+ VERSION = '1.7.5'.freeze
3
3
  end
@@ -136,6 +136,37 @@ module EffectiveTestBotFormHelper
136
136
  true
137
137
  end
138
138
 
139
+ def submit_helcim_checkout(success_content: nil)
140
+ # Click Pay by Credit Card button
141
+ within('.effective-helcim-checkout') { find('a#helcim-checkout-button').click }
142
+
143
+ # Find the iframe
144
+ helcim_checkout_iframe = find('iframe#helcimPayIframe')
145
+ assert helcim_checkout_iframe.present?, 'unable to find helcim iframe'
146
+
147
+ before_path = page.current_path
148
+
149
+ within_frame(helcim_checkout_iframe) do
150
+ assert_content 'Card number'
151
+ find('input[id=checkout-card-fields__number]').set("4242424242424242")
152
+ find('input[id=checkout-card-fields__expiry-date]').set("12#{Time.zone.now.year - 1999}")
153
+ (find('input[id=checkout-card-fields__security-number]') rescue nil).try(:set, "123")
154
+ find('button.hds-a-button').click
155
+
156
+ assert_no_js_errors
157
+ refute_content 'Payment not completed'
158
+ end
159
+
160
+ # This is a blocking selector that will wait until the page has changed url
161
+ assert_no_current_path(before_path.to_s, wait: Capybara.default_max_wait_time * 10)
162
+
163
+ if success_content
164
+ assert page.has_content?(success_content, wait: Capybara.default_max_wait_time * 10), "#{success_content} not found"
165
+ end
166
+
167
+ true
168
+ end
169
+
139
170
  def submit_moneris_checkout(success_content: nil)
140
171
  moneris_checkout_iframe = find('iframe[id=monerisCheckout-Frame]')
141
172
  assert moneris_checkout_iframe.present?, 'unable to find moneris checkout iframe'
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.7.4
4
+ version: 1.7.5
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: 2025-07-23 00:00:00.000000000 Z
11
+ date: 2025-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails