Sha256: 7a11d76c6d305e0e2b8366ca8b89d5521d17faef8a59c80407c0b69d3a421f98

Contents?: true

Size: 422 Bytes

Versions: 3

Compression:

Stored size: 422 Bytes

Contents

When /^I wait for (\d+) second$/ do |n|
  sleep(n.to_i)
end

Given /^I wait for load the tree$/ do
  timeout = 10
  wait_until(timeout) do
    Capybara.current_session.evaluate_script <<-JS
      Rwiki.treeLoaded;
    JS
  end
end

Given /^I wait for load an ajax call complete$/ do
  timeout = 10
  wait_until(timeout) do
    Capybara.current_session.evaluate_script <<-JS
      Rwiki.ajaxCallCompleted;
    JS
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rwiki-0.2.3 features/step_definitions/wait_steps.rb
rwiki-0.2.2 features/step_definitions/wait_steps.rb
rwiki-0.2.1 features/step_definitions/wait_steps.rb