spreewald 0.9.9 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/README.md +7 -5
- data/lib/spreewald/web_steps.rb +1 -0
- data/lib/spreewald_support/tolerance_for_selenium_sync_issues.rb +1 -0
- data/lib/spreewald_support/version.rb +1 -1
- metadata +62 -82
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NTFkNTMyZjljYjI4NDMyNjQ4YWM5ODQ2MWJlNDQ3MzVkYjg1YTZhYw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZWYyZWRhNjEzNjZmODI2YjkxOGI4ZmRhYTM4NjI5ZjM1MzNlYzM0Zg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MmMxNzY3ZWYyNmIyN2M2MDc0ODJmZDNiYWE4MTAyMGEwYjE5Nzg0ODZmZjhj
|
10
|
+
YWUxOThhZWVhMWVmMzVmZDI2NTFlMGFhMGVkZTdmODllMjFjODg3ZjgzOTI1
|
11
|
+
YjA4NmZjM2ZlZmE5ZWE5OWIwZjZhNjE5ZGZlZjM5OGNkZTYzNWM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MTI1MWY5M2QxNzUyZTY0MDRkYTUwYjc1NDEzMjU2MzAzZDFkNTVkOTFlZTk3
|
14
|
+
YTM3NzcxODBiNzk4ZjM5YmQwYWQyYzY1MjE0N2FkOTQ4ZGIzMWIyMWE3MTY2
|
15
|
+
ZDhlNzQ2NTkwNGQ2MjhjOGY5MDVkYzhjZjU2MDZlMDBjYjBkNTU=
|
data/README.md
CHANGED
@@ -36,9 +36,11 @@ Spreewald's web steps are all aware that you might run them with a Selenium/Capy
|
|
36
36
|
This is done by rerunning any assertions until they suceed or a timeout is reached.
|
37
37
|
|
38
38
|
We consider a couple of potential exceptions as "retriable", including
|
39
|
+
|
39
40
|
Capybara::ElementNotFound, (R)Spec::Expectations::ExpectationNotMetError, Capybara::Poltergeist::ClickFailed
|
40
41
|
|
41
42
|
You can add your own error class with
|
43
|
+
|
42
44
|
ToleranceForSeleniumSyncIssues::RETRY_ERRORS << 'MyCustomError'
|
43
45
|
|
44
46
|
You can achieve this in your own steps by wrapping them inside a `patiently do` block, like
|
@@ -157,7 +159,7 @@ The "Steps" section is autogenerated by `rake update_readme` from comments in th
|
|
157
159
|
|
158
160
|
* **Given the file "..." was attached( as (.../)?...)? to the ... above( at "...")?**
|
159
161
|
|
160
|
-
Attach a file to the given
|
162
|
+
Attach a file to the given model's last record.
|
161
163
|
|
162
164
|
Example (Company has a `file` attribute):
|
163
165
|
|
@@ -290,14 +292,14 @@ deprecation notice. Decide for yourself whether you want to use them:
|
|
290
292
|
Fill in text field
|
291
293
|
|
292
294
|
|
293
|
-
* **When I fill in "..." (with|for)
|
295
|
+
* **When I fill in "..." (with|for):**
|
294
296
|
|
295
297
|
Fill in text field with multi-line block
|
296
298
|
You can use a doc string to supply multi-line text
|
297
|
-
|
299
|
+
|
298
300
|
Example:
|
299
|
-
|
300
|
-
When I fill in "some field" with
|
301
|
+
|
302
|
+
When I fill in "some field" with:
|
301
303
|
"""
|
302
304
|
Apple
|
303
305
|
Banana
|
data/lib/spreewald/web_steps.rb
CHANGED
@@ -249,6 +249,7 @@ Then /^the "([^\"]*)" field should( not)? have an error$/ do |label, negate|
|
|
249
249
|
patiently do
|
250
250
|
expectation = negate ? :should_not : :should
|
251
251
|
field = find_field(label)
|
252
|
+
field[:id].should be_present # prevent bad CSS selector if field lacks id
|
252
253
|
page.send(expectation, have_css(".field_with_errors ##{field[:id]}"))
|
253
254
|
end
|
254
255
|
end
|
@@ -5,6 +5,7 @@ module ToleranceForSeleniumSyncIssues
|
|
5
5
|
Capybara::ElementNotFound
|
6
6
|
Spec::Expectations::ExpectationNotMetError
|
7
7
|
RSpec::Expectations::ExpectationNotMetError
|
8
|
+
Minitest::Assertion
|
8
9
|
Capybara::Poltergeist::ClickFailed
|
9
10
|
Capybara::ExpectationNotMet
|
10
11
|
Selenium::WebDriver::Error::StaleElementReferenceError
|
metadata
CHANGED
@@ -1,75 +1,65 @@
|
|
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
|
-
- 0
|
8
|
-
- 9
|
9
|
-
- 9
|
10
|
-
version: 0.9.9
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.10.0
|
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
|
-
dependencies:
|
21
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2014-06-23 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: cucumber-rails
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 3
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
version: "0"
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
33
20
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: cucumber
|
37
21
|
prerelease: false
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
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'
|
47
34
|
type: :runtime
|
48
|
-
version_requirements: *id002
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: capybara
|
51
35
|
prerelease: false
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
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'
|
61
48
|
type: :runtime
|
62
|
-
|
63
|
-
|
64
|
-
|
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:
|
65
58
|
- tobias@kraze.eu
|
66
59
|
executables: []
|
67
|
-
|
68
60
|
extensions: []
|
69
|
-
|
70
61
|
extra_rdoc_files: []
|
71
|
-
|
72
|
-
files:
|
62
|
+
files:
|
73
63
|
- .gitignore
|
74
64
|
- LICENSE
|
75
65
|
- README.md
|
@@ -150,41 +140,31 @@ files:
|
|
150
140
|
- tests/shared/features/shared/table_steps.feature
|
151
141
|
- tests/shared/features/shared/web_steps.feature
|
152
142
|
- tests/shared/features/support/paths.rb
|
153
|
-
has_rdoc: true
|
154
143
|
homepage: https://github.com/makandra/spreewald
|
155
|
-
licenses:
|
144
|
+
licenses:
|
156
145
|
- MIT
|
146
|
+
metadata: {}
|
157
147
|
post_install_message:
|
158
148
|
rdoc_options: []
|
159
|
-
|
160
|
-
require_paths:
|
149
|
+
require_paths:
|
161
150
|
- lib
|
162
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
none: false
|
173
|
-
requirements:
|
174
|
-
- - ">="
|
175
|
-
- !ruby/object:Gem::Version
|
176
|
-
hash: 3
|
177
|
-
segments:
|
178
|
-
- 0
|
179
|
-
version: "0"
|
151
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ! '>='
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ! '>='
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
180
161
|
requirements: []
|
181
|
-
|
182
162
|
rubyforge_project:
|
183
|
-
rubygems_version:
|
163
|
+
rubygems_version: 2.2.1
|
184
164
|
signing_key:
|
185
|
-
specification_version:
|
165
|
+
specification_version: 4
|
186
166
|
summary: Collection of useful cucumber steps.
|
187
|
-
test_files:
|
167
|
+
test_files:
|
188
168
|
- tests/rails-2.3/Gemfile
|
189
169
|
- tests/rails-2.3/Gemfile.lock
|
190
170
|
- tests/rails-2.3/Rakefile
|