mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-08 05:32:37 +01:00
fix #1230 by adding a scenario that uses the command line script to add todos to Tracks like a template
This commit is contained in:
parent
b90e34bd53
commit
50741162af
7 changed files with 116 additions and 53 deletions
37
features/make_project_from_template.feature
Normal file
37
features/make_project_from_template.feature
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
Feature: Create project from template
|
||||
In order to be able to create a project from a template
|
||||
As a user this installed Tracks with console access
|
||||
I want to run the script to add projects and actions from a template
|
||||
|
||||
These scenario's need selenium so that there is a Tracks server running
|
||||
to use from the command line script
|
||||
|
||||
Background:
|
||||
Given the following user records
|
||||
| login | password | is_admin |
|
||||
| testuser | secret | false |
|
||||
| admin | secret | true |
|
||||
And I have logged in as "testuser" with password "secret"
|
||||
And I have a context called "Context A"
|
||||
|
||||
@javascript
|
||||
Scenario: Create a project with one task
|
||||
Given a template that looks like
|
||||
"""
|
||||
My first project
|
||||
.My first task in this project
|
||||
"""
|
||||
When I execute the script
|
||||
Then I should have a project called "My first project"
|
||||
And I should have 1 todo in project "My first project"
|
||||
|
||||
@javascript
|
||||
Scenario: Create a project with dependent tasks
|
||||
Given a template that looks like
|
||||
"""
|
||||
My first project
|
||||
.Todo
|
||||
^Dependent
|
||||
"""
|
||||
When I execute the script
|
||||
Then the successors of "Todo" should include "Dependent"
|
||||
Loading…
Add table
Add a link
Reference in a new issue