mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-27 19:26:12 +01:00
make sure toggle_check and deleting of todos, recurring_todos and projects work in the new done views
This commit is contained in:
parent
35f947ec57
commit
6e97541ab3
10 changed files with 88 additions and 41 deletions
|
|
@ -71,4 +71,23 @@ Then /^I should see "([^"]*)" in project container for "([^"]*)"$/ do |todo_desc
|
|||
|
||||
selenium.wait_for_element("xpath=#{xpath}", :timeout_in_seconds => 5)
|
||||
selenium.is_visible(xpath).should be_true
|
||||
end
|
||||
end
|
||||
|
||||
Then /^I should see "([^"]*)" in the active recurring todos container$/ do |repeat_pattern|
|
||||
repeat = @current_user.recurring_todos.find_by_description(repeat_pattern)
|
||||
repeat.should_not be_nil
|
||||
|
||||
xpath = "//div[@id='active_recurring_todos_container']//div[@id='recurring_todo_#{repeat.id}']"
|
||||
selenium.wait_for_element("xpath=#{xpath}", :timeout_in_seconds => 5)
|
||||
selenium.is_visible(xpath).should be_true
|
||||
end
|
||||
|
||||
Then /^I should not see "([^"]*)" in the completed recurring todos container$/ do |repeat_pattern|
|
||||
repeat = @current_user.recurring_todos.find_by_description(repeat_pattern)
|
||||
repeat.should_not be_nil
|
||||
|
||||
xpath = "//div[@id='completed_recurring_todos_container']//div[@id='recurring_todo_#{repeat.id}']"
|
||||
selenium.wait_for_element("xpath=#{xpath}", :timeout_in_seconds => 5)
|
||||
selenium.is_visible(xpath).should be_true
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -110,3 +110,31 @@ Feature: Show done
|
|||
When I follow "2"
|
||||
Then I should be on the done recurring todos page
|
||||
And the page should be "2"
|
||||
|
||||
@selenium
|
||||
Scenario: I can toggle a done recurring todo active from done page
|
||||
Given I have a completed repeat pattern "test"
|
||||
When I go to the done recurring todos page
|
||||
Then I should see "test"
|
||||
When I mark the pattern "test" as active
|
||||
Then I should not see "test" in the completed recurring todos container
|
||||
When I go to the recurring todos page
|
||||
Then I should see "test" in the active recurring todos container
|
||||
|
||||
Scenario: I can delete a recurring todo from the done page
|
||||
Given this scenario is pending
|
||||
|
||||
Scenario: I can toggle a todo active from the done page
|
||||
Given this scenario is pending
|
||||
|
||||
Scenario: I can toggle a todo active from the all done page
|
||||
Given this scenario is pending
|
||||
|
||||
Scenario: I can toggle a todo active from the project done page
|
||||
Given this scenario is pending
|
||||
|
||||
Scenario: I can toggle a todo active from the context done page
|
||||
Given this scenario is pending
|
||||
|
||||
Scenario: I can edit a project to active from the project done page
|
||||
Given this scenario is pending
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue