mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-08 02:08:50 +01:00
start on the tests for the project list page
This commit is contained in:
parent
6416ff112e
commit
641c27d753
4 changed files with 46 additions and 2 deletions
55
features/edit_a_project.feature
Normal file
55
features/edit_a_project.feature
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
Feature: Edit a project
|
||||
|
||||
In order to reach a goal by doing several related todos
|
||||
As a Tracks user
|
||||
I want to manage these todos in a project
|
||||
|
||||
Background:
|
||||
Given the following user record
|
||||
| login | password | is_admin |
|
||||
| testuser | secret | false |
|
||||
And I have logged in as "testuser" with password "secret"
|
||||
And there exists a project "manage me" for user "testuser"
|
||||
|
||||
@selenium
|
||||
Scenario: I can describe the project using markup
|
||||
When I visit 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
|
||||
|
||||
# Ticket #1043
|
||||
@selenium
|
||||
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
|
||||
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"
|
||||
|
||||
# Ticket #1041
|
||||
@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
|
||||
And I edit the project name to "cherries"
|
||||
Then the project title should be "cherries"
|
||||
|
||||
# Ticket #1042
|
||||
@selenium
|
||||
Scenario: I cannot change the name of a project in the project view to the name of another existing project
|
||||
Given I have a project "test" with 1 todos
|
||||
When I go to the projects page
|
||||
Then the badge should show 2 # "manage me" and "test"
|
||||
When I visit the "manage me" project
|
||||
And I edit the project name to "test"
|
||||
Then I should see "Name already exists"
|
||||
|
||||
# Ticket #1042
|
||||
@selenium
|
||||
Scenario: I cannot change the name of a project in the project list view to the name of another existing project
|
||||
Given I have a project "test" with 1 todos
|
||||
When I go to the projects page
|
||||
Then the badge should show 2 # "manage me" and "test"
|
||||
When I edit the project name of "manage me" to "test"
|
||||
Then I should see "Name already exists"
|
||||
Loading…
Add table
Add a link
Reference in a new issue