effective_test_bot 1.7.7 → 1.7.9

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: 5fcf5bbd4f2564e04006f6f0d3f26eed0d2081e41ce5116959cc0e897101c00a
4
- data.tar.gz: 2a6631b5748aba171a30063b932fb3789134340b43c1c7382efc5e7d62cbf349
3
+ metadata.gz: 07d35a95259ca95427d9cf3f683b5772f7ead21ddaccfba26db8a0e7e69df241
4
+ data.tar.gz: dccee1cb15aa036640ab367a970d3ffe2f2da3b760575c45b8f5127c9dca5f39
5
5
  SHA512:
6
- metadata.gz: aa39cc9f7965e3d689cfcf48e1ed0dc990eefb2b534a202c4d3ff7da16404d303b7906842e9bb63cc2c68b9885a12bcbcd3c3415e7c53e15ca31efcc57f40566
7
- data.tar.gz: ea52a507f0e699ff925789156ac5fbb827c98f8ec1301c46bbb3e9f8b141ddaaea59a35b7cca6f65867123bc13afca9a4f7b11cbc819e4a02fd1dd6a87c4b749
6
+ metadata.gz: 598efc2bc915c67d539e313d29fd4337b33980c3f46265ea02aa095131a5aed6bcaa4583bdef0ae3832632086c9f4b31b973b5742dea4588a12c1d903e99a849
7
+ data.tar.gz: be8e0f9f9dda9b884720be5bd38096837b9918af48b948a6c9774162893aa76cf3d45c44f3384eb23dc7fdebe5c613a89523e726d886b7d8a94a8e6f0e088c01
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.7.7'.freeze
2
+ VERSION = '1.7.9'.freeze
3
3
  end
@@ -315,7 +315,11 @@ module EffectiveTestBotAssertions
315
315
  matches &&= (html_body.present? && html_body.include?('<meta')) if html_layout
316
316
  matches &&= (html_body.blank? && plain_body.blank? && message_body.exclude?('<meta')) if plain_layout
317
317
 
318
- return retval if matches
318
+ # assert_email is true on any delivery that match
319
+ if matches
320
+ assert true # self.assertions += 1
321
+ return retval
322
+ end
319
323
  end
320
324
 
321
325
  expected = [
@@ -260,6 +260,7 @@ module EffectiveTestBotFormHelper
260
260
  begin
261
261
  submit.click
262
262
  rescue => e
263
+ submit = find_submit(label, last: last) # Re-find in case element became stale
263
264
  submit.click
264
265
  end
265
266
  end
@@ -3,6 +3,19 @@ module EffectiveTestBotTestHelper
3
3
  def synchronize!
4
4
  page.document.find('html')
5
5
  wait_for_ajax
6
+ wait_for_turbolinks
7
+ end
8
+
9
+ def wait_for_turbolinks
10
+ return unless page.evaluate_script('typeof Turbolinks !== "undefined"')
11
+
12
+ begin
13
+ Timeout.timeout(Capybara.default_max_wait_time * 2) do
14
+ loop until page.evaluate_script('Turbolinks.controller === undefined || !Turbolinks.controller.adapter.progressBar.visible')
15
+ end
16
+ rescue => e
17
+ # Turbolinks not active or not available, continue
18
+ end
6
19
  end
7
20
 
8
21
  # https://gist.github.com/josevalim/470808#gistcomment-1268491
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.7
4
+ version: 1.7.9
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: 2026-01-05 00:00:00.000000000 Z
11
+ date: 2026-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails