Skip to content

Commit

Permalink
Merge pull request #24 from joemasilotti/fork
Browse files Browse the repository at this point in the history
Remove hardcoded 30s wait timeout for navigation
  • Loading branch information
MichaelBuckley committed Jun 12, 2014
2 parents 6ed538a + 2c2f5e6 commit 84877fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gem/lib/frank-cucumber/core_frank_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@

Then /^I wait to see a navigation bar titled "([^\"]*)"$/ do |expected_mark|
quote = get_selector_quote(expected_mark)
wait_until( :timeout => 30, :message => "waited to see a navigation bar titled #{quote}#{expected_mark}#{quote}" ) {
wait_until( :message => "waited to see a navigation bar titled #{quote}#{expected_mark}#{quote}" ) {
element_exists( "navigationItemView marked:#{quote}#{expected_mark}#{quote}" )
}
end

Then /^I wait to not see a navigation bar titled "([^\"]*)"$/ do |expected_mark|
quote = get_selector_quote(expected_mark)
wait_until( :timeout => 30, :message => "waited to not see a navigation bar titled #{quote}#{expected_mark}#{quote}" ) {
wait_until( :message => "waited to not see a navigation bar titled #{quote}#{expected_mark}#{quote}" ) {
!element_exists( "navigationItemView marked:#{quote}#{expected_mark}#{quote}" )
}
end
Expand Down

0 comments on commit 84877fe

Please sign in to comment.