mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-17 14:45:28 +01:00
fix scenarios for editing a todo, showing empty messages and fix some missing translations
This commit is contained in:
parent
793f7786f1
commit
068c4bf60e
16 changed files with 222 additions and 190 deletions
|
|
@ -12,12 +12,12 @@ Feature: Edit a next action from every page
|
|||
Scenario: I can toggle the star of a todo
|
||||
Given this is a pending scenario
|
||||
|
||||
@selenium @wip
|
||||
@selenium
|
||||
Scenario: I can delete a todo
|
||||
Given I have a todo with description "delete me" in the context "@home"
|
||||
Given I have a todo "delete me" in the context "@home"
|
||||
When I go to the home page
|
||||
Then I should see "delete me"
|
||||
And I delete the todo
|
||||
When I delete the action "delete me"
|
||||
Then I should not see "delete me"
|
||||
|
||||
Scenario: Removing the last todo in context will hide context # delete, edit
|
||||
|
|
@ -26,24 +26,25 @@ Feature: Edit a next action from every page
|
|||
Scenario: Deleting the last todo in container will show empty message # only project, context, tag, not todo
|
||||
Given this is a pending scenario
|
||||
|
||||
@selenium @wip
|
||||
@selenium
|
||||
Scenario Outline: I can mark an active todo complete and it will update empty messages
|
||||
Given I have a context called "visible context"
|
||||
And I have a project called "visible project"
|
||||
When I go to the <page>
|
||||
Then I should see "<empty message>"
|
||||
When I submit a new action with description "visible todo" to project "visible project" with tags "test" in the context "visible context"
|
||||
When I submit a new action with description "visible todo" to project "visible project" with tags "starred" in the context "visible context"
|
||||
Then I should see "visible todo"
|
||||
And I should not see "<empty message>"
|
||||
When I mark the todo complete
|
||||
Then I should not see "visible context"
|
||||
When I mark "visible todo" as complete
|
||||
And I should see "<empty message>"
|
||||
And I should see "visible todo" in the completed todos container
|
||||
And I should see "visible todo" in the completed container
|
||||
|
||||
Scenarios:
|
||||
| page | empty message |
|
||||
| tag page for "starred" | No actions found |
|
||||
| home page | No actions found |
|
||||
| context page for "visible context" | Currently there are no deferred or pending actions |
|
||||
| project page for "visible project" | Currently there are no deferred or pending actions |
|
||||
| page | empty message |
|
||||
| "visible project" project | Currently there are no incomplete actions in this project |
|
||||
| home page | Currently there are no incomplete actions |
|
||||
| tag page for "starred" | No actions found |
|
||||
| context page for "visible context" | Currently there are no incomplete actions in this context |
|
||||
|
||||
@selenium @wip
|
||||
Scenario Outline: I can mark a deferred todo complete and it will update empty messages
|
||||
|
|
@ -52,7 +53,7 @@ Feature: Edit a next action from every page
|
|||
When I submit a new deferred action with description "visible todo" to project "visible project" with tags "test" in the context "visible context"
|
||||
Then I should see "visible todo"
|
||||
And I should not see "<empty message>"
|
||||
When I mark the todo complete
|
||||
When I mark "visible todo" complete
|
||||
Then I should not see "visible context"
|
||||
And I should see "<empty message>"
|
||||
And I should see "visible todo" in the completed todos container
|
||||
|
|
@ -63,10 +64,6 @@ Feature: Edit a next action from every page
|
|||
| context page for "visible context" | Currently there are no deferred or pending actions |
|
||||
| project page for "visible project" | Currently there are no deferred or pending actions |
|
||||
|
||||
@selenium @wip
|
||||
Scenario: I can mark a deferred todo complete and it will update empty messages
|
||||
Given this is a pending scenario
|
||||
|
||||
@selenium @wip
|
||||
Scenario Outline: I can mark a completed todo active and it will update empty messages
|
||||
Given I have a completed todo with description "visible todo" to project "visible project" with tags "test" in the context "visible context"
|
||||
|
|
|
|||
|
|
@ -12,13 +12,13 @@ Feature: Edit a project
|
|||
|
||||
Scenario: I can go to the note of a project
|
||||
Given I have a project "test" with 2 notes
|
||||
When I visit the "test" project
|
||||
When I go to the "test" project
|
||||
When I click on the first note icon
|
||||
Then I should go to that note page
|
||||
|
||||
@selenium
|
||||
Scenario: I can describe the project using markup
|
||||
When I visit the "manage me" project
|
||||
When I go to the "manage me" project
|
||||
And I edit the project description to "_successfull outcome_: project is *done*"
|
||||
Then I should see the italic text "successfull outcome" in the project description
|
||||
And I should see the bold text "done" in the project description
|
||||
|
|
@ -26,7 +26,7 @@ Feature: Edit a project
|
|||
@selenium
|
||||
Scenario: I can edit the project name in place
|
||||
Given I have a project "release tracks 1.8" with 1 todos
|
||||
When I visit the project page for "release tracks 1.8"
|
||||
When I go to the "release tracks 1.8" project
|
||||
And I edit the project name in place to be "release tracks 2.0"
|
||||
Then I should see the project name is "release tracks 2.0"
|
||||
When I go to the projects page
|
||||
|
|
@ -37,7 +37,7 @@ Feature: Edit a project
|
|||
@selenium
|
||||
Scenario: I can change the name of the project using the Edit Project Settings form
|
||||
Given I have a project "bananas" with 1 todos
|
||||
When I visit the "bananas" project
|
||||
When I go to the "bananas" project
|
||||
And I edit the project name to "cherries"
|
||||
Then the project title should be "cherries"
|
||||
|
||||
|
|
@ -63,21 +63,21 @@ Feature: Edit a project
|
|||
@selenium
|
||||
Scenario: I can add a note to the project
|
||||
Given I have a project called "test"
|
||||
When I visit the "test" project
|
||||
When I go to the "test" project
|
||||
And I add a note "hello I'm testing" to the project
|
||||
Then I should see one note in the project
|
||||
|
||||
@selenium
|
||||
Scenario: Cancelling adding a note to the project will remove form
|
||||
Given I have a project called "test"
|
||||
When I visit the "test" project
|
||||
When I go to the "test" project
|
||||
And I cancel adding a note to the project
|
||||
Then the form for adding a note should not be visible
|
||||
|
||||
@selenium
|
||||
Scenario: Long notes in a project are shown cut off
|
||||
Given I have a project called "test"
|
||||
When I visit the "test" project
|
||||
When I go to the "test" project
|
||||
And I add a note "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890TOO LONG" to the project
|
||||
Then I should not see "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890TOO LONG"
|
||||
And I should see "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456"
|
||||
|
|
@ -101,7 +101,7 @@ Feature: Edit a project
|
|||
@selenium @wip
|
||||
Scenario: I can move a todo out of the current project
|
||||
Given I have a project "foo" with 2 todos
|
||||
When I visit the "foo" project
|
||||
When I go to the "foo" project
|
||||
And I change the project_name field of "Todo 1" to "bar"
|
||||
Then I should not see the todo "Todo 1"
|
||||
And I should see the todo "Todo 2"
|
||||
|
|
|
|||
|
|
@ -27,3 +27,10 @@ Then /^I should see the empty message in the deferred container$/ do
|
|||
selenium.is_visible("xpath=//div[@id='tickler']//div[@id='tickler-empty-nd']")
|
||||
end
|
||||
end
|
||||
|
||||
Then /^I should not see the context "([^"]*)"$/ do |context_name|
|
||||
context = @current_user.contexts.find_by_name(context_name)
|
||||
wait_for :timeout => 5 do
|
||||
!selenium.is_visible("xpath=//div[@id='c#{context.id}']")
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue