replace selenium script with cucumber story for switching recurrence option

This commit is contained in:
Reinier Balt 2010-05-05 13:00:44 +02:00
parent 0d7980e87b
commit e1b52aeb13
4 changed files with 34 additions and 12 deletions

View file

@ -0,0 +1,7 @@
When /^I select "([^\"]*)" recurrence pattern$/ do |recurrence_period|
selenium.click("recurring_todo_recurring_period_#{recurrence_period.downcase}")
end
Then /^I should see the form for "([^\"]*)" recurrence pattern$/ do |recurrence_period|
selenium.is_visible("recurring_#{recurrence_period.downcase}")
end