spreewald 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +1 -0
- data/lib/spreewald/web_steps.rb +3 -1
- data/lib/spreewald_support/version.rb +1 -1
- data/tests/rails-2.3/Gemfile.lock +1 -1
- data/tests/rails-3.2/capybara-1/Gemfile.lock +1 -1
- data/tests/rails-3.2/capybara-2/Gemfile.lock +1 -1
- data/tests/shared/app/views/static_pages/click_on.html.haml +7 -0
- data/tests/shared/features/shared/web_steps.feature +7 -0
- metadata +61 -77
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 591f1594fb0bfe42e56f28dbb8ef78251de952ee
|
4
|
+
data.tar.gz: 7e2a69ce6ea063d0b60a0b0aa0d2aafe6a716a81
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bf05682d06bbb9a55b4be5aa00263ad53a63fb992ada8ae4f53f41583bdaea52bf652e37a4329e5db7a31b9c2a38836fdd6879b0970b5e563f7ff05ef05675bb
|
7
|
+
data.tar.gz: 082c88d2a97193609a483614b4b81cba5e836af978b6060f2f69224bf9e8eebdf75e0f59aca0070385ef8b7fd93b0288db28dabc9dd11e4231e5eae0aabb454a
|
data/README.md
CHANGED
data/lib/spreewald/web_steps.rb
CHANGED
@@ -494,7 +494,9 @@ end
|
|
494
494
|
# Click on some text that might not be a link
|
495
495
|
When /^I click on "([^\"]+)"$/ do |text|
|
496
496
|
patiently do
|
497
|
-
|
497
|
+
contains_text = %{contains(., \"#{text}\")}
|
498
|
+
# find the innermost selector that matches
|
499
|
+
element = page.find(:xpath, ".//*[#{contains_text} and not (./*[#{contains_text}])]")
|
498
500
|
element.click
|
499
501
|
end
|
500
502
|
end
|
@@ -51,3 +51,10 @@ Feature: Web steps
|
|
51
51
|
When I go to "/forms/checkbox_form"
|
52
52
|
Then the "Checked" checkbox should be checked
|
53
53
|
And the "Unchecked" checkbox should not be checked
|
54
|
+
|
55
|
+
|
56
|
+
# We only check for it to not die, reacting to click on arbitrary elements will not work without javascript
|
57
|
+
Scenario: /^I click on "([^\"]+)"$/
|
58
|
+
When I go to "/static_pages/click_on"
|
59
|
+
And I click on "Nested"
|
60
|
+
And I click on "Button"
|
metadata
CHANGED
@@ -1,75 +1,67 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreewald
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 1
|
10
|
-
version: 1.1.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.2
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Tobias Kraze
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: cucumber-rails
|
22
|
-
|
23
|
-
|
24
|
-
none: false
|
25
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
26
17
|
- - ">="
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
32
20
|
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: cucumber
|
36
21
|
prerelease: false
|
37
|
-
|
38
|
-
|
39
|
-
requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
40
24
|
- - ">="
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: cucumber
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
46
34
|
type: :runtime
|
47
|
-
version_requirements: *id002
|
48
|
-
- !ruby/object:Gem::Dependency
|
49
|
-
name: capybara
|
50
35
|
prerelease: false
|
51
|
-
|
52
|
-
|
53
|
-
requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
54
38
|
- - ">="
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: capybara
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
60
48
|
type: :runtime
|
61
|
-
|
62
|
-
|
63
|
-
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
description: A collection of cucumber steps we use in our projects, including steps
|
56
|
+
to check HTML, tables, emails and some utility methods.
|
57
|
+
email:
|
64
58
|
- tobias@kraze.eu
|
65
|
-
executables:
|
59
|
+
executables:
|
66
60
|
- spreewald
|
67
61
|
extensions: []
|
68
|
-
|
69
62
|
extra_rdoc_files: []
|
70
|
-
|
71
|
-
|
72
|
-
- .gitignore
|
63
|
+
files:
|
64
|
+
- ".gitignore"
|
73
65
|
- LICENSE
|
74
66
|
- README.md
|
75
67
|
- Rakefile
|
@@ -141,6 +133,7 @@ files:
|
|
141
133
|
- tests/shared/app/views/forms/form1.html.haml
|
142
134
|
- tests/shared/app/views/forms/form2.html.haml
|
143
135
|
- tests/shared/app/views/layouts/application.html.haml
|
136
|
+
- tests/shared/app/views/static_pages/click_on.html.haml
|
144
137
|
- tests/shared/app/views/static_pages/home.html.haml
|
145
138
|
- tests/shared/app/views/static_pages/link_to_home.html.haml
|
146
139
|
- tests/shared/app/views/tables/table1.html.haml
|
@@ -152,39 +145,30 @@ files:
|
|
152
145
|
- tests/shared/features/shared/web_steps.feature
|
153
146
|
- tests/shared/features/support/paths.rb
|
154
147
|
homepage: https://github.com/makandra/spreewald
|
155
|
-
licenses:
|
148
|
+
licenses:
|
156
149
|
- MIT
|
150
|
+
metadata: {}
|
157
151
|
post_install_message:
|
158
152
|
rdoc_options: []
|
159
|
-
|
160
|
-
require_paths:
|
153
|
+
require_paths:
|
161
154
|
- lib
|
162
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
163
|
-
|
164
|
-
requirements:
|
155
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
165
157
|
- - ">="
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
version: "0"
|
171
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
|
-
none: false
|
173
|
-
requirements:
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0'
|
160
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
174
162
|
- - ">="
|
175
|
-
- !ruby/object:Gem::Version
|
176
|
-
|
177
|
-
segments:
|
178
|
-
- 0
|
179
|
-
version: "0"
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
180
165
|
requirements: []
|
181
|
-
|
182
166
|
rubyforge_project:
|
183
|
-
rubygems_version:
|
167
|
+
rubygems_version: 2.2.2
|
184
168
|
signing_key:
|
185
|
-
specification_version:
|
169
|
+
specification_version: 4
|
186
170
|
summary: Collection of useful cucumber steps.
|
187
|
-
test_files:
|
171
|
+
test_files:
|
188
172
|
- tests/rails-2.3/Gemfile
|
189
173
|
- tests/rails-2.3/Gemfile.lock
|
190
174
|
- tests/rails-2.3/Rakefile
|
@@ -233,6 +217,7 @@ test_files:
|
|
233
217
|
- tests/shared/app/views/forms/form1.html.haml
|
234
218
|
- tests/shared/app/views/forms/form2.html.haml
|
235
219
|
- tests/shared/app/views/layouts/application.html.haml
|
220
|
+
- tests/shared/app/views/static_pages/click_on.html.haml
|
236
221
|
- tests/shared/app/views/static_pages/home.html.haml
|
237
222
|
- tests/shared/app/views/static_pages/link_to_home.html.haml
|
238
223
|
- tests/shared/app/views/tables/table1.html.haml
|
@@ -243,4 +228,3 @@ test_files:
|
|
243
228
|
- tests/shared/features/shared/table_steps.feature
|
244
229
|
- tests/shared/features/shared/web_steps.feature
|
245
230
|
- tests/shared/features/support/paths.rb
|
246
|
-
has_rdoc:
|