cucumber_steps 0.0.4 → 0.0.5
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: 97cf04ba5915fa17f53a43afcb812e6c5e9ae1d8
|
4
|
+
data.tar.gz: 49ee7a85bf7bcf1b5aee73287f76878ed2367265
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc57309d70146736269128da65a11f1e125c5cc82701c5d9a28befa9209d96ef1b6ad9870a116a85f7a17593f3e0c7b70bdb995c35b505d7510f529e43e12c58
|
7
|
+
data.tar.gz: 28fcbb6ac2a71c5d53a676f42f2514b1d414c0b7966007e8fce2d7426b60ad0ec69eddd6bfea1b8b5da621d39e8919567fea0ee98c44d8fd43ae319de4652814
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/cucumber_steps.gemspec
CHANGED
@@ -20,13 +20,11 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_development_dependency
|
24
|
-
spec.add_development_dependency
|
23
|
+
spec.add_development_dependency 'bundler', '>= 1.6'
|
24
|
+
spec.add_development_dependency 'rake'
|
25
25
|
|
26
26
|
spec.add_dependency 'watir'
|
27
27
|
spec.add_dependency 'rspec'
|
28
28
|
spec.add_dependency 'cucumber'
|
29
29
|
|
30
|
-
spec.add_development_dependency 'hirb'
|
31
|
-
|
32
30
|
end
|
@@ -5,6 +5,12 @@ And /^I click to the "([^"]+)" field that is near to the "([^"]+)" label$/i do |
|
|
5
5
|
element_to_click.click
|
6
6
|
end
|
7
7
|
|
8
|
+
And /^I press the (\w+) with the following text: (.*)$/i do |tag_name, text|
|
9
|
+
element_to_click = browser.current_scope.element(text: text, tag_name: tag_name).when_present
|
10
|
+
element_to_click.hover rescue nil
|
11
|
+
element_to_click.click
|
12
|
+
end
|
13
|
+
|
8
14
|
And /^I press the "([^"]+)" button$/i do |button_text|
|
9
15
|
element_to_click = browser.current_scope.element(text: button_text).when_present
|
10
16
|
element_to_click.hover rescue nil
|
@@ -13,7 +13,7 @@ module CucumberSteps::ENVFetcher
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def close_browser_at_exit?
|
16
|
-
not lookup_for(false, 'CLOSE_BROWSER_AT_EXIT', 'BROWSER_CLOSE_AT_EXIT',
|
16
|
+
not lookup_for(false, 'CLOSE_BROWSER_AT_EXIT', 'BROWSER_CLOSE_AT_EXIT','CLOSE_BROWSER')
|
17
17
|
end
|
18
18
|
|
19
19
|
def browser_name
|
@@ -23,7 +23,7 @@ module CucumberSteps::ENVFetcher
|
|
23
23
|
protected
|
24
24
|
|
25
25
|
def lookup_for(boolean, *env_keys)
|
26
|
-
formatted_env(env_keys).any? { |k, v| v == boolean }
|
26
|
+
formatted_env(filtered_env(env_keys)).any? { |k, v| v == boolean }
|
27
27
|
end
|
28
28
|
|
29
29
|
def lookup_value_by(*env_keys)
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber_steps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Luzsi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.6'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -80,20 +80,6 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: hirb
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '0'
|
97
83
|
description: collection of often used cucumber steps to avoid the violation of DRY
|
98
84
|
principle
|
99
85
|
email:
|
@@ -147,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
133
|
version: '0'
|
148
134
|
requirements: []
|
149
135
|
rubyforge_project:
|
150
|
-
rubygems_version: 2.
|
136
|
+
rubygems_version: 2.4.8
|
151
137
|
signing_key:
|
152
138
|
specification_version: 4
|
153
139
|
summary: often used generic cucumber steps for DRY
|