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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b4f8b032c99230c6fcee477b0b80ace59c6d2bfae02936c1e4b0e3c6b366233
|
4
|
+
data.tar.gz: 2826d465044bdd27544a4d8dc4be38f2ce78109fafabc953d9c6541b6e6f5e07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16cea9eb462395b662a10005cd577a305c67b2f405801cd5ed48d0e6478d4a5a30f72cb662ab7f9d9e71e22df614a971cdf4e5cc5e0f62519f501ba4316355b7
|
7
|
+
data.tar.gz: 8fdac06110cdde7a0e7ef41eb24e4f67156c1afad7c82856e1c15b0c36c2eaf2d9abba2df7a49a189c0d9f3a4ab8bbeac16f4486a4083eb46179701b5dd62d3e
|
@@ -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
|
-
#
|
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.
|
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-
|
11
|
+
date: 2025-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|