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.
- Loading branch information
1 parent
a301f3b
commit 84aaa0f
Showing
9 changed files
with
34 additions
and
28 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,21 +9,22 @@ Feature: Creating new admin user | |
| user@example.com | | ||
|
||
Scenario: Invited user already have account | ||
Given I get to authentication route by invitation link | ||
When I log in as "[email protected]" | ||
Given Invited user get to authentication route by invitation link | ||
When I log in as <email> | ||
Then I become admin user | ||
|
||
Scenario Outline: Successfully created an account | ||
Given I get to authentication route by invitation link | ||
When I fill "email" with <email> | ||
And I fill "password" with <password>> | ||
And I fill "password" with <password> | ||
And I fill "name" with <name> | ||
Then I create new account with email <email> | ||
And I become admin user | ||
Examples: | ||
| email | password | name | | ||
| user@example.com | validpassword | newadmin | | ||
Scenario: Invitation is expired | ||
Given Invitation was send more than 7 days ago | ||
|
||
Scenario: Invitation has expired | ||
Given invitation was send more than 7 days ago | ||
When I get to authentication route by invitation link | ||
Then I should see message "Your invitation is expired" | ||
Then I should see message "Your invitation is expired" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
Feature: Register to app | ||
|
||
Background: | ||
Given I am on the register page | ||
|
||
Scenario Outline: Register with valid data | ||
When I fill "email" with <email> | ||
And I fill "password" with <password> | ||
And I fill "name" with <name> | ||
When I fill "email" with "<email>" | ||
And I fill "password" with "<password>" | ||
And I fill "name" with "<name>" | ||
And I submit form | ||
Then I have successfully sign up | ||
And I should get an email on <email> | ||
Examples: | ||
| email | password | name | | ||
| existinguser@example.com | correctpassword | existinguser | | ||
|
||
Scenario: Register using existing email | ||
Given there are following users | ||
Given there are following users: | ||
| email | password | | ||
| existinguser@example.com | password | | ||
When I fill "email" with "[email protected]" | ||
And I fill "password" with "password" | ||
Then I should see message "User with this email actually exist" | ||
And I submit form | ||
Then I should see message "User with this email actually exist" |
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