screengem 0.21.1 → 0.21.2

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: 5464d440db28cb87d4fa76d99665b1968bb1bdbc23cc0c11b2168fa742077bca
4
- data.tar.gz: fb950e13e56aaa784a816a4cae95c8900570750b6f552eccb3ddcee513687e89
3
+ metadata.gz: 9321ae3c6f518999057e3cd9b38a62503563e07d7452e44a95c0afa5ac19f454
4
+ data.tar.gz: 84297d6336c9f0a2622dbdc7df87f9be41a6f46087c39558f34b20a0a596cb1e
5
5
  SHA512:
6
- metadata.gz: bcdd9360d156b170dd79e0f4d3939e18114421bbea55dfb9785f14d0fd4e2c6ecdbd138a2c90ec6189fcb5bd94b1bcccf60b8f200072df37cc3ec17020fe81d9
7
- data.tar.gz: 82b16d9a29012e8302fdb1ec5f6552b5891c0f367dca33ed3a05b890930fc18ebb114b3e3480a07fa22aa5d11083e3037a7421851cefc4e204b556c6e76854ac
6
+ metadata.gz: 05e0ad92dd7d719e60ca00dcefeb68d820ddff726c63914ca3c833747fd623c400b6f7add86debe127aa09206a226ffb6c6453b71c8f986a7dfa25690dde503b
7
+ data.tar.gz: a1bb6537e3987f1881bd1ce73556411d88e1c9b4596fae3afb3f982ac17e3b37ae52fbd8273fab06b4834a0fd4b82702c51b2328f3155e93407a3c222024283e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## main (unreleased)
4
4
 
5
+ ## 0.21.2 (2024-10-03)
6
+
7
+ ### Bug fixes
8
+
9
+ * Restore behaviour of URI auto visit for screen elements
10
+ that define a visit_path that contains a query
11
+
5
12
  ## 0.21.1 (2024-10-03)
6
13
 
7
14
  ### Bug fixes
@@ -25,14 +25,17 @@ module Screengem
25
25
 
26
26
  #
27
27
  # Screen elements may define a visit_path that includes these elements
28
- # of a URI: the path, a query string, and a fragment. When deciding to
29
- # skip the page.visit we have to consider all of these elements.
28
+ # of a URI: the path, a query string, and a fragment. We consider only
29
+ # the path and the fragment when building the current_uri.
30
+ #
31
+ # This has the somewhat surprising consequence that a visit_path that contains
32
+ # a query string will never match the current_uri meaning that we will always
33
+ # auto visit. This preserves the behaviour in versions prior to 0.21.x.
30
34
  #
31
35
  def current_uri
32
36
  uri = URI(page.current_url)
33
37
 
34
38
  current_uri = uri.path
35
- current_uri += "?#{uri.query}" if uri.query.present?
36
39
  current_uri += "##{uri.fragment}" if uri.fragment.present?
37
40
 
38
41
  current_uri
@@ -1,3 +1,3 @@
1
1
  module Screengem
2
- VERSION = "0.21.1"
2
+ VERSION = "0.21.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: screengem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.1
4
+ version: 0.21.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alistair McKinnell