Skip to content

Commit

Permalink
Implemented steps for importing a feature over AJAX
Browse files Browse the repository at this point in the history
  • Loading branch information
baphled committed Jun 29, 2010
1 parent 61886a5 commit c42a25a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions features/step_definitions/selenium_steps.rb
Expand Up @@ -142,4 +142,26 @@

Then /^the side bar should not be rendered$/ do
response.should_not have_selector "css=div#sidebar"
end

When /^I click "([^\"]*)"$/ do |selector|
selenium.wait_for_element("css=#{selector}", :timeout_in_seconds => 10)
selenium.click "css=#{selector}"
end

Then /^the import link should be visible$/ do
selenium.wait_for_visible("css=span#panel ul.icons > li a#import")
end

Then /^I should see the imports page$/ do
selenium.wait_for_element("css=div#myTabs", :timeout_in_seconds => 60)
end

When /^I import "([^\"]*)"$/ do |selector|
selenium.wait_for_element("css=#{selector}", :timeout_in_seconds => 10)
selenium.click "css=#{selector}"
end

Then /^the imports will be rendered via AJAX$/ do
selenium.wait_for_visible("css=div#myTabs", :timeout_in_seconds => 2 * 60)
end

0 comments on commit c42a25a

Please sign in to comment.