polyblock 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/polyblock/capybara_helpers.rb +2 -1
- data/lib/polyblock/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bf9008887fae26ad79aa76fbe8a172da6ad6ab3
|
4
|
+
data.tar.gz: 6c9495b8d6baa16961f04c5bea3568b254d98ac8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d74df5375feb912807a23523df66b582efe50a5b3287ec86733509d01999a7b2cbb64caf76063b7ec11fb08f1bdb88067fe3c8e8e209a3ebf73c70fa1ba69696
|
7
|
+
data.tar.gz: d401f0d06297798a2bc786203534ddb0e3ae1345bc8864a82ccdac663635c3e13fe178f51db0b079a5160a93d1f3f716418cd4f3fcd71303b1b8b0a1d3571675
|
@@ -3,7 +3,8 @@ module Polyblock
|
|
3
3
|
def fill_in_polyblock(locator, params={})
|
4
4
|
# Find out ckeditor id at runtime using its label
|
5
5
|
# if page.has_css? "##{locator}"
|
6
|
-
if page.evaluate_script("$('##{locator}').is('*')")
|
6
|
+
if !locator.include?(' ') && page.evaluate_script("$('##{locator}').is('*')")
|
7
|
+
# Locator is fine as is for capybara.
|
7
8
|
# elsif page.has_css? 'label', text: locator
|
8
9
|
elsif page.evaluate_script("$(\"label:contains('#{locator}')\").is('*')")
|
9
10
|
locator = find('label', text: locator)[:for]
|
data/lib/polyblock/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyblock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MacKinley Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|