mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 11:10:12 +01:00
Simplify feature test to make date-independent
This commit is contained in:
parent
38387c844d
commit
3fc9173d54
3 changed files with 1 additions and 21 deletions
|
|
@ -10,11 +10,6 @@ Given /^I am working on the mobile interface$/ do
|
|||
@mobile_interface = true
|
||||
end
|
||||
|
||||
Given /^the date is "(.*?)"$/ do |date|
|
||||
# remember to tag the scenario with @reset_time to reset this travel
|
||||
travel_to date
|
||||
end
|
||||
|
||||
Given(/^I have selected the view for group by (project|context)$/) do |grouping|
|
||||
@group_view_by = grouping
|
||||
end
|
||||
|
|
|
|||
|
|
@ -7,7 +7,3 @@ Before('@aruba') do
|
|||
@aruba_timeout_seconds = 5
|
||||
# print "\nsetting timeout for aruba to #{@aruba_timeout_seconds}\n"
|
||||
end
|
||||
|
||||
After('@reset_time') do
|
||||
travel_back
|
||||
end
|
||||
|
|
@ -153,24 +153,13 @@ Feature: Show done
|
|||
| all done actions page for project "test project"| "test project" project | |
|
||||
| all done actions page for tag "starred" | home page | in the context container for "@pc" |
|
||||
|
||||
@javascript @reset_time
|
||||
@javascript
|
||||
Scenario: Activating the last todo will show empty message
|
||||
Given the date is "2013-03-11"
|
||||
And I have a completed todo with description "todo 2" in context "@pc" completed 2 days ago
|
||||
And I have a completed todo with description "todo 3" in context "@pc" completed 7 days ago
|
||||
When I go to the done actions page
|
||||
Then I should see "todo 1" in the done today container
|
||||
And I should see "todo 2" in the done this week container
|
||||
And I should see "todo 3" in the done this month container
|
||||
When I mark the completed todo "todo 1" active
|
||||
Then I should not see the todo "todo 1"
|
||||
And I should see empty message for done today of done actions
|
||||
When I mark the completed todo "todo 2" active
|
||||
Then I should not see the todo "todo 2"
|
||||
And I should see empty message for done this week of done actions
|
||||
When I mark the completed todo "todo 3" active
|
||||
Then I should not see the todo "todo 3"
|
||||
And I should see empty message for done this month of done actions
|
||||
|
||||
@javascript
|
||||
Scenario Outline: I can toggle the star of a todo from the done pages
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue