capybara 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +8 -0
- data/lib/capybara/queries/selector_query.rb +8 -6
- data/lib/capybara/version.rb +1 -1
- data/spec/shared_selenium_session.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7a05e30cbe8690367f383d17347c7b804e4d344ad3133ade68455a048b42808
|
4
|
+
data.tar.gz: b636d45641d3a1984b28efb9cd1079df36e7f41bf7ae0dc99335aa36e925951a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e7499bd3c7f96850db011ebf6215c8e27e11cfcc0c9a000a12b655455d03969fcaa8b17d09cbb4e672ff5ac3eaeb84d45e98d556bc26c42f4f0e0f9b55a7573
|
7
|
+
data.tar.gz: '053149fbaa728ab525ed988ef231fcc8189db64baf64fc6be64df8d05c86bd9ca13023028fdd1fe92751fc7345df2e4930e3cccf20306c7805265c27ee09518e'
|
data/History.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
# Version 3.2.1
|
2
|
+
Release date: 2018-06-04
|
3
|
+
|
4
|
+
### Fixes
|
5
|
+
|
6
|
+
* Only split CSS selectors when :class or :id options are given. Restores 3.1.1 functionality for now but the underlying issue
|
7
|
+
will require a larger fix, hopefully coming soon. - Issue #2044 [Thomas Walpole]
|
8
|
+
|
1
9
|
# Version 3.2.0
|
2
10
|
Release date: 2018-06-01
|
3
11
|
|
@@ -225,12 +225,14 @@ module Capybara
|
|
225
225
|
raise ArgumentError, "XPath expressions are not supported for the :class filter with CSS based selectors"
|
226
226
|
end
|
227
227
|
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
228
|
+
if process_class || process_id
|
229
|
+
css_selectors = expr.split(',').map(&:rstrip)
|
230
|
+
expr = css_selectors.map do |sel|
|
231
|
+
sel += "##{Capybara::Selector::CSS.escape(options[:id])}" if process_id
|
232
|
+
sel += css_from_classes(Array(options[:class])) if process_class
|
233
|
+
sel
|
234
|
+
end.join(", ")
|
235
|
+
end
|
234
236
|
expr
|
235
237
|
end
|
236
238
|
|
data/lib/capybara/version.rb
CHANGED
@@ -273,7 +273,7 @@ RSpec.shared_examples "Capybara::Session" do |session, mode|
|
|
273
273
|
expect(@animation_session).to have_no_link('transition me away', wait: 0.5)
|
274
274
|
end
|
275
275
|
|
276
|
-
it "should disable CSS animations"
|
276
|
+
it "should disable CSS animations" do
|
277
277
|
@animation_session.visit('with_animation')
|
278
278
|
@animation_session.click_link('animate me away')
|
279
279
|
expect(@animation_session).to have_no_link('animate me away', wait: 0.5)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Walpole
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain:
|
12
12
|
- gem-public_cert.pem
|
13
|
-
date: 2018-06-
|
13
|
+
date: 2018-06-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: addressable
|