Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged changes from branch 0.8.3 as they should be here anyway
- Loading branch information
Showing
11 changed files
with
223 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
Feature: Form submission via AJAX | ||
In order to keep the AJAX based form submission consistent | ||
As an user | ||
I want to experience the same kind of user journey regardless of using AJAX or not | ||
|
||
Scenario Outline: A feature we should still see the source feature file contents via a dialog box | ||
Given there is a <item> | ||
When I am on "<page>" page | ||
And "<form action>" the "<item>" form | ||
Then I submit the form | ||
Then there should be an AJAX request | ||
When I use the features path link | ||
Then there should be an AJAX request | ||
And a dialog box should appear | ||
|
||
Examples: | ||
| page | item | form action | | ||
| edit feature | feature | update | | ||
|
||
Scenario Outline: After editing a item the hover dialog should still function | ||
Given there is a <item> | ||
When I am on "<page>" page | ||
And "<form action>" the "<item>" form | ||
Then I submit the form | ||
When I click "button.display_form" | ||
Then there should be an AJAX request | ||
|
||
Examples: | ||
| page | item | form action | | ||
| new project | project | fill in | | ||
| edit project | project | update | | ||
| new feature | feature | fill in | | ||
| edit feature | feature | update | | ||
| new story | story | fill in | | ||
| edit story | story | update | | ||
| new step | step | fill in | | ||
| edit step | step | update | | ||
|
||
Scenario Outline: The items panel should be visible | ||
Given there is a <item> | ||
When I am on the <page> page | ||
And the <item> is filled in | ||
Then there should be an AJAX call | ||
And the icons panel should be visible | ||
|
||
Examples: | ||
| page | item | form action | | ||
| new project | project | fill in | | ||
| edit project | project | update | | ||
| new feature | feature | fill in | | ||
| edit feature | feature | update | | ||
| new story | story | fill in | | ||
| edit story | story | update | | ||
| new step | step | fill in | | ||
| edit step | step | update | | ||
|
||
Scenario Outline: The order button should still function | ||
Given there is a <item> | ||
When I am on the <page> page | ||
And the <item> is filled in | ||
Then there should be an AJAX call | ||
And the order button should be visible | ||
When I click the "Order" button | ||
Then I should see the handlers | ||
|
||
Examples: | ||
| page | item | form action | | ||
| new project | project | fill in | | ||
| edit project | project | update | | ||
| new feature | feature | fill in | | ||
| edit feature | feature | update | | ||
| new story | story | fill in | | ||
| edit story | story | update | | ||
|
||
# @TODO Add more pagination related scenarios later | ||
Scenario Outline: We should still be able to use the pagination | ||
Given there is a <item> | ||
When I am on the <page> page | ||
And the <item> is filled in | ||
Then there should be an AJAX call | ||
And pagination should be visible | ||
|
||
Examples: | ||
| page | item | form action | | ||
| new project | project | fill in | | ||
| edit project | project | update | | ||
| new feature | feature | fill in | | ||
| edit feature | feature | update | | ||
| new story | story | fill in | | ||
| edit story | story | update | | ||
| new step | step | fill in | | ||
| edit step | step | update | | ||
|
||
Scenario Outline: Animated icon panels should still work | ||
Given there is a <item> | ||
When I am on the <page> page | ||
And the <item> is filled in | ||
Then there should be an AJAX call | ||
And I click panel for the first item in the sortable list | ||
Then the panels icons should be visible | ||
|
||
Examples: | ||
| page | item | form action | | ||
| new project | project | fill in | | ||
| edit project | project | update | | ||
| new feature | feature | fill in | | ||
| edit feature | feature | update | | ||
| new story | story | fill in | | ||
| edit story | story | update | | ||
| new step | step | fill in | | ||
| edit step | step | update | | ||
|
||
Scenario Outline: The submitted form should be hidden | ||
Given there is a <item> | ||
When I am on the <page> page | ||
And the <item> is filled in | ||
Then there should be an AJAX call | ||
And the for should be hidden | ||
|
||
Examples: | ||
| page | item | form action | | ||
| new project | project | fill in | | ||
| edit project | project | update | | ||
| new feature | feature | fill in | | ||
| edit feature | feature | update | | ||
| new story | story | fill in | | ||
| edit story | story | update | | ||
| new step | step | fill in | | ||
| edit step | step | update | | ||
|
||
Scenario Outline: The submitted form can be revealed via a button | ||
Given there is a <item> | ||
When I am on the <page> page | ||
And the <item> is filled in | ||
Then there should be an AJAX call | ||
And the for should be hidden | ||
And there should be a "view form" button | ||
|
||
Examples: | ||
| page | item | form action | | ||
| new project | project | fill in | | ||
| edit project | project | update | | ||
| new feature | feature | fill in | | ||
| edit feature | feature | update | | ||
| new story | story | fill in | | ||
| edit story | story | update | | ||
| new step | step | fill in | | ||
| edit step | step | update | | ||
|
||
Scenario Outline: Should be able to sort the responding | ||
Given there is a <item> | ||
When I am on the <page> page | ||
And the <item> is filled in | ||
Then there should be an AJAX call | ||
And the order button should be visible | ||
When I click the "Order" button | ||
Then I should see the handlers | ||
|
||
Examples: | ||
| page | item | form action | | ||
| edit project | project | update | | ||
| edit feature | feature | update | | ||
| edit story | story | update | | ||
| edit step | step | update | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters