frank-cucumber 1.1.3 → 1.1.4.pre1
Sign up to get free protection for your applications and to get access to all the features.
Binary file
|
data/frank-skeleton/libFrank.a
CHANGED
Binary file
|
data/frank-skeleton/libShelley.a
CHANGED
Binary file
|
@@ -48,7 +48,7 @@ end
|
|
48
48
|
|
49
49
|
Then /^I should not see "([^\"]*)"$/ do |expected_mark|
|
50
50
|
quote = get_selector_quote(expected_mark)
|
51
|
-
|
51
|
+
check_element_does_not_exist_or_is_not_visible("view marked:#{quote}#{expected_mark}#{quote}")
|
52
52
|
end
|
53
53
|
|
54
54
|
Then /I should see the following:/ do |table|
|
@@ -103,6 +103,10 @@ module FrankHelper
|
|
103
103
|
element_exists( selector ).should be_true
|
104
104
|
end
|
105
105
|
|
106
|
+
def check_element_exists_and_is_visible( selector )
|
107
|
+
element_is_not_hidden( selector ).should be_true
|
108
|
+
end
|
109
|
+
|
106
110
|
# Assert whether there are no views in the current view heirarchy which match the specified selector.
|
107
111
|
# @param [String] selector a view selector.
|
108
112
|
# @raise an rspec exception if the assertion fails
|
@@ -111,6 +115,10 @@ module FrankHelper
|
|
111
115
|
element_exists( selector ).should be_false
|
112
116
|
end
|
113
117
|
|
118
|
+
def check_element_does_not_exist_or_is_not_visible( selector )
|
119
|
+
element_is_not_hidden( selector ).should be_false
|
120
|
+
end
|
121
|
+
|
114
122
|
# Indicate whether there are any views in the current view heirarchy which contain the specified accessibility label.
|
115
123
|
# @param [String] expected_mark the expected accessibility label
|
116
124
|
# @return [Boolean]
|
@@ -201,8 +209,8 @@ module FrankHelper
|
|
201
209
|
#
|
202
210
|
# a better name for this method would be element_exists_and_is_not_hidden
|
203
211
|
def element_is_not_hidden(selector)
|
204
|
-
matches = frankly_map( selector, '
|
205
|
-
matches.delete(
|
212
|
+
matches = frankly_map( selector, 'FEX_isVisible' )
|
213
|
+
matches.delete(false)
|
206
214
|
!matches.empty?
|
207
215
|
end
|
208
216
|
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frank-cucumber
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.4.pre1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Pete Hodgson
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-12-
|
13
|
+
date: 2012-12-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: cucumber
|
@@ -365,9 +365,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
365
365
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
366
366
|
none: false
|
367
367
|
requirements:
|
368
|
-
- - ! '
|
368
|
+
- - ! '>'
|
369
369
|
- !ruby/object:Gem::Version
|
370
|
-
version:
|
370
|
+
version: 1.3.1
|
371
371
|
requirements: []
|
372
372
|
rubyforge_project:
|
373
373
|
rubygems_version: 1.8.24
|