mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-24 17:56:10 +01:00
replace selenium script with cucumber story for switching recurrence option
This commit is contained in:
parent
0d7980e87b
commit
e1b52aeb13
4 changed files with 34 additions and 12 deletions
7
features/step_definitions/recurring_todo_steps.rb
Normal file
7
features/step_definitions/recurring_todo_steps.rb
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue