mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-05 20:40:14 +01:00
another attempt at #1150 and fix some failing cucumber scenarios
This commit is contained in:
parent
98d8712229
commit
af4489ff6e
11 changed files with 82 additions and 86 deletions
|
|
@ -13,7 +13,7 @@ Feature: dependencies
|
|||
Scenario: Adding dependency to dependency by drag and drop
|
||||
Given I have a project "dependencies" with 3 todos
|
||||
And "Todo 2" depends on "Todo 1"
|
||||
When I visit the "dependencies" project
|
||||
When I go to the "dependencies" project
|
||||
And I drag "Todo 3" to "Todo 2"
|
||||
Then the successors of "Todo 1" should include "Todo 2"
|
||||
And the successors of "Todo 2" should include "Todo 3"
|
||||
|
|
@ -31,7 +31,7 @@ Feature: dependencies
|
|||
| test 1 | @pc |
|
||||
| test 2 | @pc |
|
||||
| test 3 | @pc |
|
||||
When I visit the "dependencies" project
|
||||
When I go to the "dependencies" project
|
||||
When I edit the dependency of "test 1" to add "test 2" as predecessor
|
||||
Then I should see "test 1" within the dependencies of "test 2"
|
||||
And I should see "test 1" in the deferred container
|
||||
|
|
@ -51,7 +51,7 @@ Feature: dependencies
|
|||
| test 1 | @pc |
|
||||
| test 2 | @pc |
|
||||
And "test 1" depends on "test 2"
|
||||
When I visit the "dependencies" project
|
||||
When I go to the "dependencies" project
|
||||
Then I should see "test 1" in the deferred container
|
||||
When I edit the dependency of "test 1" to remove "test 2" as predecessor
|
||||
Then I should not see "test 1" within the dependencies of "test 2"
|
||||
|
|
@ -66,7 +66,7 @@ Feature: dependencies
|
|||
| test 2 | @pc |
|
||||
| test 3 | @pc |
|
||||
And "test 2" depends on "test 1"
|
||||
When I visit the "dependencies" project
|
||||
When I go to the "dependencies" project
|
||||
Then I should see "test 2" in the deferred container
|
||||
And I should see "test 1" in the action container
|
||||
When I mark "test 1" as complete
|
||||
|
|
@ -84,7 +84,7 @@ Feature: dependencies
|
|||
| test 2 | @pc |
|
||||
| test 3 | @pc |
|
||||
And "test 2" depends on "test 1"
|
||||
When I visit the "dependencies" project
|
||||
When I go to the "dependencies" project
|
||||
Then I should see "test 2" in the deferred container
|
||||
And I should see "test 1" in the action container
|
||||
When I delete the action "test 1"
|
||||
|
|
@ -95,7 +95,7 @@ Feature: dependencies
|
|||
Scenario: Deleting a successor will update predecessor
|
||||
Given this is a pending scenario
|
||||
|
||||
@selenium @wip
|
||||
@selenium
|
||||
Scenario: Dragging an action to a completed action will not add it as a dependency
|
||||
Given I have a context called "@pc"
|
||||
And I have a project "dependencies" that has the following todos
|
||||
|
|
@ -103,7 +103,7 @@ Feature: dependencies
|
|||
| test 1 | @pc | no |
|
||||
| test 2 | @pc | no |
|
||||
| test 3 | @pc | yes |
|
||||
When I visit the "dependencies" project
|
||||
When I go to the "dependencies" project
|
||||
And I drag "test 1" to "test 3"
|
||||
Then I should see an error flash message saying "Cannot add this action as a dependency to a completed action!"
|
||||
And I should see "test 1" in project container for "dependencies"
|
||||
Loading…
Add table
Add a link
Reference in a new issue