Created
February 25, 2019 06:43
-
-
Save AdrienLemaire/7a2da16fa9838935e798acfc8c0d6765 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# features/authentication.feature | |
@fixture.browser.chrome | |
Feature: Authentication | |
A user can create an account and login with his credentials | |
Scenario: Registration | |
Given a visitor goes to "/" | |
And he clicks on "アカウント作成" # Create account | |
And he clicks on "emailで登録" # via email/password | |
When he fills the form | |
| name | value | | |
| firstName | 00000000000 | | |
| lastName | The North | | |
| email | [email protected] | | |
| password | password | | |
| checkAgree | true | | |
Then he sees the account type dialog form | |
And he can see his user avatar | |
And emails are sent | |
| to | subject | | |
| [email protected] | 新しいユーザーが登録しました | | |
| [email protected] | GOuniteへようこそ! | | |
Scenario: Login | |
Given a visitor goes to "/gounite-story/faq" | |
And he clicks on "ログイン" # Login | |
And he clicks on "メールでログインする" # via email/password | |
When he fills the form | |
| name | value | | |
| email | [email protected] | | |
| password | password | | |
Then he sees the snackbar message "お帰りなさい" # Welcome back | |
And he is still on "/gounite-story/faq" | |
And he can see his user avatar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment