spreewald 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e87244041bf4db105bb24ebae80922b8c8ea8861
|
4
|
+
data.tar.gz: 2d6d78329f07387e7a2e0b81472195e864dc7547
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 366723a6a66a7d050dc7c7c4a0dd94f232161ac0e7d232b39b499a308958983f99d1411b6f2025c43d53bf56e9fc6acd759f779456743da4211449e4108ba131
|
7
|
+
data.tar.gz: 64f3f18a10aad6320ce752361ba9f158deff19306511b84873b144de5f355a797f72677ba6780bff8f30673f1005ab0f1885a73f253f551cef0e7f8fdce11254
|
data/lib/spreewald/web_steps.rb
CHANGED
@@ -507,10 +507,11 @@ end.overridable
|
|
507
507
|
# Example:
|
508
508
|
#
|
509
509
|
# Then I should see an element ".panel"
|
510
|
+
# Then I should see the element ".panel"
|
510
511
|
# Then I should not see an element ".sidebar"
|
511
|
-
# Then I should see the
|
512
|
+
# Then I should not see the element ".sidebar"
|
512
513
|
#
|
513
|
-
Then /^I should (not )?see an element "([^"]+)"$/ do |negate, selector|
|
514
|
+
Then /^I should (not )?see (?:an|the) element "([^"]+)"$/ do |negate, selector|
|
514
515
|
expectation = negate ? :should_not : :should
|
515
516
|
patiently do
|
516
517
|
page.send(expectation, have_css(selector))
|
@@ -522,10 +523,11 @@ end.overridable
|
|
522
523
|
# Example:
|
523
524
|
#
|
524
525
|
# Then I should see an element for the panel
|
526
|
+
# Then I should see the element for the panel
|
525
527
|
# Then I should not an element for the sidebar
|
526
|
-
# Then I should
|
528
|
+
# Then I should not the element for the sidebar
|
527
529
|
#
|
528
|
-
Then /^I should (not )?see an element for (.*?)$/ do |negate, locator|
|
530
|
+
Then /^I should (not )?see (?:an|the) element for (.*?)$/ do |negate, locator|
|
529
531
|
expectation = negate ? :should_not : :should
|
530
532
|
selector = _selector_for(locator)
|
531
533
|
patiently do
|
@@ -107,9 +107,13 @@ Feature: Web steps
|
|
107
107
|
Scenario: /^I should (not )?see (?:|a|an |the )(.*?) element$/
|
108
108
|
When I go to "/static_pages/see_element"
|
109
109
|
Then I should see an element ".panel"
|
110
|
+
And I should see the element ".panel"
|
110
111
|
And I should see an element for a panel
|
112
|
+
And I should see the element for a panel
|
111
113
|
But I should not see an element ".timeline"
|
114
|
+
But I should not see the element ".timeline"
|
112
115
|
And I should not see an element for the timeline
|
116
|
+
And I should not see the element for the timeline
|
113
117
|
|
114
118
|
Scenario: /^(.*) within (.*[^:])$/
|
115
119
|
When I go to "/static_pages/within"
|