This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#7 - change unnecessary outline scenarios
- Loading branch information
1 parent
92c1d6c
commit 09f0a48
Showing
14 changed files
with
48 additions
and
111 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 |
---|---|---|
|
@@ -4,15 +4,12 @@ Feature: Adding a user to admin panel | |
Given the administrator is logged in | ||
And the administrator is on the page with invitation form | ||
|
||
Scenario Outline: Successfully send invitation to unregistered user | ||
Scenario Successfully send invitation to unregistered user | ||
Given the invited user doesn't have an account | ||
When the administrator fills in "email" with "<email>" | ||
When the administrator fills in "email" with "[email protected]" | ||
And the administrator sends the form | ||
Then the administrator should see "Successfully send invitation" | ||
And the invited user should get an invitation link on "<email>" | ||
Examples: | ||
| email | | ||
| firstuser@example.com | | ||
And the invited user should get an invitation link on "[email protected]" | ||
|
||
Scenario: An administrator fills in invited user email field with invalid email | ||
When the administrator fills in "email" with "wrongemail@" | ||
|
@@ -23,22 +20,16 @@ Feature: Adding a user to admin panel | |
When the administrator sends the form | ||
Then the administrator should see "Email field is required" | ||
|
||
Scenario Outline: The invited user is already an administrator | ||
Given the user with "<email>" email address is already an administrator | ||
When the administrator fills in "email" with "<email>" | ||
Scenario: The invited user is already an administrator | ||
Given the user with "[email protected]" email address is already an administrator | ||
When the administrator fills in "email" with "[email protected]" | ||
And the administrator sends the form | ||
Then the administrator should see the message "This user is already an administrator" | ||
Examples: | ||
| email | | ||
| existingadmin@example.com | | ||
|
||
Scenario Outline: Successfully send invitation to already registered user | ||
Given There is a user with "<email>" email address | ||
Scenario: Successfully send invitation to already registered user | ||
Given There is a user with "[email protected]" email address | ||
And the invited user is not an administrator yet | ||
When the administrator fills in "email" with "<email>" | ||
When the administrator fills in "email" with "[email protected]" | ||
And the administrator sends the form | ||
Then the administrator should see "Successfully send invitation" | ||
And invited user should get an invitation link on "<email>" | ||
Examples: | ||
| email | | ||
| firstuser@example.com | | ||
And invited user should get an invitation link on "[email protected]" |
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 |
---|---|---|
|
@@ -7,16 +7,13 @@ Feature: Creating a admin user | |
|
||
Scenario: The invited user already have account | ||
Given the invited user is on the authentication route by invitation link | ||
When the invited user logs in as "<email>" | ||
When the invited user logs in as "[email protected] " | ||
Then the invited user becomes admin user | ||
|
||
Scenario Outline: Successfully created an account | ||
Scenario: Successfully created an account | ||
Given the invited user is on the authentication route by invitation link | ||
When the invited user registers with "<email>" email address | ||
Then new administrator with email "<email>" should be created | ||
Examples: | ||
| email | | ||
| user@example.com | | ||
When the invited user registers with "[email protected] " email address | ||
Then new administrator with email "[email protected] " should be created | ||
|
||
Scenario: The invitation has expired | ||
Given the invitation was send more than 7 days ago | ||
|
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
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