capybara-lockstep 2.4.0 → 2.4.1

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: eb5ab18d6ec37825a825c3da9fdde70e7203b68609242a8a4738cb3034a0c3b2
4
- data.tar.gz: d74acc6c1c2b73bbeea372f91d54068c548723d28e46cf5a4a01520004d4ef1e
3
+ metadata.gz: e0f89f35da1b1e2cd222c5696338d3566015bb5d93182a83332ade90d1a7f9ee
4
+ data.tar.gz: f663ef9803afd93e72221f47f4db3cb0095e0e25ad9a3847375af143279155b0
5
5
  SHA512:
6
- metadata.gz: d67cc0d38dc1ab56ff728010cfde78016b357ac5964ab70ed18b7d8173599129eb9ff06bfd4a5e84754698cc568bb14e78378334910afcdabb7a1055f8f1f1ea
7
- data.tar.gz: 8a8e007d57eb6f2e661a158156aefe4844d26f1de755939040229da146ae32e850b26aacb674cbd02de0ddd196c8e4ee2a39d8b8cb6b526af85ad96eda2d930f
6
+ metadata.gz: 4596e5553febbf239b5d843ab91041dda5ea2d74357e5915df44263f9b24cd0c0833bea023e104fcddd747314e1565773acfc5d78657b66a2cd2cd73ce492e35
7
+ data.tar.gz: 4aba35f369b87ed4d96e80fbe8390e9396f27bdb01b196ac8349207b230a27ce855567fb0281a8fc6e6aec91ef794f7cded7d5338c8748f7cc1ac49c4d63c43f
data/CHANGELOG.md CHANGED
@@ -13,6 +13,13 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
13
13
  -
14
14
 
15
15
 
16
+ # 2.4.1 - 2026-11-20
17
+
18
+ ## Compatible changes
19
+
20
+ - Fix a test failure with Cuprite and Ferrum 0.20+ when the page navigates away while capybara-lockstep synchronizes. `Ferrum::NoExecutionContextError`, and `Ferrum::NodeNotFoundError` with the message `Inspected target navigated or closed`, are now treated as a "navigated away" event.
21
+
22
+
16
23
  # 2.4.0 - 2026-10-15
17
24
 
18
25
  ## Compatible changes
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capybara-lockstep (2.4.0)
4
+ capybara-lockstep (2.4.1)
5
5
  activesupport (>= 7.0)
6
6
  capybara (>= 3.0)
7
7
 
@@ -39,18 +39,17 @@ GEM
39
39
  childprocess (4.1.0)
40
40
  concurrent-ruby (1.3.6)
41
41
  connection_pool (3.0.2)
42
- cuprite (0.17)
42
+ cuprite (0.20.1)
43
43
  capybara (~> 3.0)
44
- ferrum (~> 0.17.0)
44
+ ferrum (~> 0.20.1)
45
45
  daemons (1.4.1)
46
46
  diff-lcs (1.5.1)
47
47
  drb (2.2.3)
48
48
  eventmachine (1.2.7)
49
- ferrum (0.17.1)
49
+ ferrum (0.20.1)
50
50
  addressable (~> 2.5)
51
51
  base64 (~> 0.2)
52
52
  concurrent-ruby (~> 1.1)
53
- webrick (~> 1.7)
54
53
  websocket-driver (~> 0.7)
55
54
  gemika (2.0.0)
56
55
  i18n (1.14.8)
@@ -117,7 +116,6 @@ GEM
117
116
  tzinfo (2.0.6)
118
117
  concurrent-ruby (~> 1.0)
119
118
  uri (1.1.1)
120
- webrick (1.9.1)
121
119
  websocket-driver (0.8.0)
122
120
  base64
123
121
  websocket-extensions (>= 0.1.0)
@@ -22,6 +22,16 @@ module Capybara
22
22
  unhandled_synchronize_error(e)
23
23
  end
24
24
 
25
+ rescue ::Ferrum::NoExecutionContextError
26
+ log ERROR_NAVIGATED_AWAY
27
+
28
+ rescue ::Ferrum::NodeNotFoundError => e
29
+ if e.message.include?('Inspected target navigated or closed')
30
+ log ERROR_NAVIGATED_AWAY
31
+ else
32
+ unhandled_synchronize_error(e)
33
+ end
34
+
25
35
  rescue ::Ferrum::BrowserError => e
26
36
  if e.message.include?('Session with given id not found.')
27
37
  log ERROR_WINDOW_CLOSED
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Lockstep
3
- VERSION = "2.4.0"
3
+ VERSION = "2.4.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-lockstep
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch