Skip to content

Commit

Permalink
Removed hardcoded 30s wait timeout for navigation
Browse files Browse the repository at this point in the history
Steps
* I wait to see a navigation bar titled "..."
* I wait to not see a navigation bar titled "..."
  • Loading branch information
joemasilotti committed May 22, 2014
1 parent 6ed538a commit 2c2f5e6
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 2c2f5e6

Please sign in to comment.