On Aug 31, 7:33 pm, "Cory R." <
penguin...@gmail.com> wrote:
> - Can I pause and let the application do its thing? For example, it
> may take a moment for my application to finish loading something from
> the network, can I tell cucumber to wait?
Here are a couple step definitions that might help. Put these into a
file such as ./features/step_definitions/wait_steps.rb:
Given "a short wait" do
sleep 2
end
Given /^a (.*) second wait$/ do |sec|
sleep sec.to_i
end
You can then write tests like:
When I tap "Load"
Given a short wait
Then I should see "Done"
or
When I tap "Load large file"
Given a 10 second wait
Then I should see "File loaded"
Dave