mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
107 lines
4.4 KiB
Gherkin
107 lines
4.4 KiB
Gherkin
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 there exists a project "manage me" for user "testuser"
|
|
And I have logged in as "testuser" with password "secret"
|
|
|
|
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 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
|
|
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
|
|
|
|
@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"
|
|
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
|
|
Then I should see that a project named "release tracks 1.8" is not present
|
|
And I should see that a project named "release tracks 2.0" is present
|
|
|
|
# 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 try to 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 try to edit the project name of "manage me" to "test"
|
|
Then I should see "Name already exists"
|
|
|
|
@selenium
|
|
Scenario: I can add a note to the project
|
|
Given I have a project called "test"
|
|
When I visit 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
|
|
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
|
|
And I add a note "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890TOO LONG" to the project
|
|
Then I should not see "123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890TOO LONG"
|
|
And I should see "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456"
|
|
|
|
Scenario: Cancelling editing a project will restore project settings
|
|
Given this is a pending scenario
|
|
|
|
Scenario: Editing the description of a todo will update todo
|
|
Given this is a pending scenario
|
|
|
|
Scenario: Moving the todo to the tickler will move todo to tickler container
|
|
Given this is a pending scenario
|
|
|
|
Scenario: Moving the todo out of the tickler will move todo to active container
|
|
Given this is a pending scenario
|
|
|
|
Scenario: Making all todos inactive will show empty message
|
|
Given this is a pending scenario # empty message is in separate container
|
|
|
|
# Ticket #1043
|
|
@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
|
|
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"
|