spreewald 1.11.4 → 1.11.5
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: bf851dda8cb5ddd71b0bbe5d0cfb62c831813c0905674a0866ff3791fc9a07bc
|
4
|
+
data.tar.gz: da9fdec7af1e6db9e079f7990dfde799a81931d6e1d30da67c08798a4d0d73a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b25272ce7b158baf0c9a972b00c180a1a87bd2ccaee01d17d4d91ef6a4601b0102bef95f0b321bb6655ed51bca4483eefca7eea0f383589181817f95619467e
|
7
|
+
data.tar.gz: a2d8cd593f45ad84dd9b1a375f797efa43a8bf65d769e9942e27ac9dbb8d0c5e87c41ee7504e00e748e098682b292063d4df73b471b65163c235eedff1285d37
|
data/lib/spreewald/web_steps.rb
CHANGED
@@ -43,9 +43,9 @@ require 'cgi'
|
|
43
43
|
# Then I should see "some text" within ".page_body"
|
44
44
|
When /^(.*) within (.*[^:])$/ do |nested_step, parent|
|
45
45
|
selector = _selector_for(parent)
|
46
|
-
if selector.is_a?(String) # could also be a Capybara::Node::Element
|
46
|
+
if selector.is_a?(String) || selector.is_a?(Array) # could also be a Capybara::Node::Element
|
47
47
|
patiently do
|
48
|
-
page.should
|
48
|
+
page.should have_selector(*selector)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
patiently do
|
@@ -276,11 +276,15 @@ Then /^the "([^"]*)" field should have no error$/ do |field|
|
|
276
276
|
end
|
277
277
|
end.overridable
|
278
278
|
|
279
|
-
Then /^the "([^"]*)" checkbox should( not)? be checked
|
279
|
+
Then /^the "([^"]*)" checkbox should( not)? be checked( and disabled)?$/ do |label, negate, disabled|
|
280
280
|
expectation = negate ? :should_not : :should
|
281
281
|
|
282
282
|
patiently do
|
283
|
-
field =
|
283
|
+
field = if Capybara::VERSION < "2.1"
|
284
|
+
find_field(label)
|
285
|
+
else
|
286
|
+
find_field(label, :disabled => !!disabled)
|
287
|
+
end
|
284
288
|
field.send expectation, be_checked
|
285
289
|
end
|
286
290
|
end.overridable
|
@@ -378,15 +382,19 @@ end.overridable
|
|
378
382
|
|
379
383
|
# Checks for the presence of an option in a select
|
380
384
|
Then /^"([^"]*)" should( not)? be an option for "([^"]*)"$/ do |value, negate, field|
|
385
|
+
finder_arguments = if Capybara::VERSION < "2.12"
|
386
|
+
['option', { :text => value }]
|
387
|
+
else
|
388
|
+
['option', { :exact_text => value }]
|
389
|
+
end
|
381
390
|
patiently do
|
382
|
-
xpath = ".//option[text() = '#{value}']"
|
383
391
|
if negate
|
384
392
|
begin
|
385
|
-
field_labeled(field).
|
393
|
+
field_labeled(field).should have_no_css(*finder_arguments)
|
386
394
|
rescue Capybara::ElementNotFound
|
387
395
|
end
|
388
396
|
else
|
389
|
-
field_labeled(field).
|
397
|
+
field_labeled(field).should have_css(*finder_arguments)
|
390
398
|
end
|
391
399
|
end
|
392
400
|
end.overridable
|
@@ -497,7 +505,7 @@ end.overridable
|
|
497
505
|
When /^I click on the element for (.+?)$/ do |locator|
|
498
506
|
patiently do
|
499
507
|
selector = _selector_for(locator)
|
500
|
-
page.find(selector).click
|
508
|
+
page.find(*selector).click
|
501
509
|
end
|
502
510
|
end.overridable
|
503
511
|
|
@@ -544,7 +552,7 @@ Then /^I should (not )?see (?:an|the) element for (.*?)$/ do |negate, locator|
|
|
544
552
|
expectation = negate ? :should_not : :should
|
545
553
|
selector = _selector_for(locator)
|
546
554
|
patiently do
|
547
|
-
page.send(expectation,
|
555
|
+
page.send(expectation, have_selector(*selector))
|
548
556
|
end
|
549
557
|
end.overridable
|
550
558
|
|
@@ -632,9 +640,13 @@ Then /^I should see in this order:?$/ do |text|
|
|
632
640
|
end.overridable
|
633
641
|
|
634
642
|
# Tests that an input or button with the given label is disabled.
|
635
|
-
Then /^the "([^\"]*)" (field|button) should( not)? be disabled$/ do |label, kind, negate|
|
636
|
-
if kind == 'field'
|
637
|
-
|
643
|
+
Then /^the "([^\"]*)" (field|button|checkbox) should( not)? be disabled$/ do |label, kind, negate|
|
644
|
+
if kind == 'field' || kind == 'checkbox'
|
645
|
+
if Capybara::VERSION < "2.1"
|
646
|
+
element = find_field(label, :disabled => !negate)
|
647
|
+
else
|
648
|
+
element = find_field(label, :disabled => !negate)
|
649
|
+
end
|
638
650
|
else
|
639
651
|
element = find_button(label)
|
640
652
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../..
|
3
3
|
specs:
|
4
|
-
spreewald (1.11.
|
4
|
+
spreewald (1.11.5)
|
5
5
|
cucumber
|
6
6
|
cucumber_priority (>= 0.3.0)
|
7
7
|
|
@@ -36,7 +36,7 @@ GEM
|
|
36
36
|
term-ansicolor (>= 1.0.6)
|
37
37
|
cucumber-rails (0.3.2)
|
38
38
|
cucumber (>= 0.8.0)
|
39
|
-
cucumber_priority (0.3.
|
39
|
+
cucumber_priority (0.3.2)
|
40
40
|
cucumber
|
41
41
|
database_cleaner (1.0.1)
|
42
42
|
diff-lcs (1.2.4)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../../..
|
3
3
|
specs:
|
4
|
-
spreewald (1.11.
|
4
|
+
spreewald (1.11.5)
|
5
5
|
cucumber
|
6
6
|
cucumber_priority (>= 0.3.0)
|
7
7
|
|
@@ -57,7 +57,7 @@ GEM
|
|
57
57
|
cucumber (>= 1.2.0)
|
58
58
|
nokogiri (>= 1.5.0)
|
59
59
|
rails (>= 3.0.0)
|
60
|
-
cucumber_priority (0.3.
|
60
|
+
cucumber_priority (0.3.2)
|
61
61
|
cucumber
|
62
62
|
database_cleaner (1.0.1)
|
63
63
|
diff-lcs (1.3)
|
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ../../..
|
3
3
|
specs:
|
4
|
-
spreewald (1.11.
|
4
|
+
spreewald (1.11.5)
|
5
5
|
cucumber
|
6
6
|
cucumber_priority (>= 0.3.0)
|
7
7
|
|
@@ -58,7 +58,7 @@ GEM
|
|
58
58
|
cucumber (>= 1.2.0)
|
59
59
|
nokogiri (>= 1.5.0)
|
60
60
|
rails (>= 3.0.0)
|
61
|
-
cucumber_priority (0.3.
|
61
|
+
cucumber_priority (0.3.2)
|
62
62
|
cucumber
|
63
63
|
database_cleaner (1.0.1)
|
64
64
|
diff-lcs (1.3)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreewald
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.11.
|
4
|
+
version: 1.11.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Kraze
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|