effective_test_bot 1.6.0 → 1.7.0

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: a55f62eb834bfd80ba7a0f1daeada6083104044368d5e8c23e018451ba9e774e
4
- data.tar.gz: a0f06bbc4ffd9e9f10a7efc69ee950cc64080174a00691031e1c16f1bfa0d542
3
+ metadata.gz: 0b4f8b032c99230c6fcee477b0b80ace59c6d2bfae02936c1e4b0e3c6b366233
4
+ data.tar.gz: 2826d465044bdd27544a4d8dc4be38f2ce78109fafabc953d9c6541b6e6f5e07
5
5
  SHA512:
6
- metadata.gz: 56946f3a358665ba2bb7bfed8a7e40ddcb64209eb251b0911fe8f2a53f9752adb5c9c5e1c5176ba0afaf0484f84be09d7bc1120a6c7b591d4f5400263e14843e
7
- data.tar.gz: 7fecd67c89b0081ca0615ab41032b1dee34ccbbee435c9988a3a5092a1843e38713efb0c5dc363b62ca62df9f0c2e59a71b066001f131cedf8c597e49f0604be
6
+ metadata.gz: 16cea9eb462395b662a10005cd577a305c67b2f405801cd5ed48d0e6478d4a5a30f72cb662ab7f9d9e71e22df614a971cdf4e5cc5e0f62519f501ba4316355b7
7
+ data.tar.gz: 8fdac06110cdde7a0e7ef41eb24e4f67156c1afad7c82856e1c15b0c36c2eaf2d9abba2df7a49a189c0d9f3a4ab8bbeac16f4486a4083eb46179701b5dd62d3e
@@ -1,3 +1,3 @@
1
1
  module EffectiveTestBot
2
- VERSION = '1.6.0'.freeze
2
+ VERSION = '1.7.0'.freeze
3
3
  end
@@ -28,6 +28,9 @@ module EffectiveTestBotFormHelper
28
28
  assert_no_html5_form_validation_errors unless test_bot_skip?(:no_html5_form_validation_errors)
29
29
  assert_jquery_ujs_disable_with(label) unless test_bot_skip?(:jquery_ujs_disable_with)
30
30
 
31
+ # Add a unique class to the body before submission
32
+ page.execute_script("document.body.classList.add('effective-test-bot-submitting-form');")
33
+
31
34
  before_path = page.current_path
32
35
  before_path = 'ignore' unless assert_path_changed
33
36
 
@@ -39,7 +42,8 @@ module EffectiveTestBotFormHelper
39
42
 
40
43
  assert_no_assigns_errors unless test_bot_skip?(:no_assigns_errors)
41
44
 
42
- # This is a blocking selector that will wait until the page has changed url
45
+ # Make sure the page has fully loaded afer submission
46
+ assert_no_selector('body.effective-test-bot-submitting-form', wait: Capybara.default_max_wait_time * 10)
43
47
  assert_no_current_path(before_path.to_s, wait: Capybara.default_max_wait_time * 10)
44
48
 
45
49
  assert_no_exceptions unless test_bot_skip?(:exceptions)
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.6.0
4
+ version: 1.7.0
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-04-15 00:00:00.000000000 Z
11
+ date: 2025-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails