scinote-web/features/sessions/sign_up.feature

48 lines
1.9 KiB
Gherkin
Raw Normal View History

2017-07-06 15:07:05 +08:00
Feature: Sign up
As a new User
I want to create a new account
So that I can use SciNote
2017-07-06 15:07:05 +08:00
Background:
Given the following users are registered
2020-07-06 20:52:42 +08:00
| email | initials |
| night.slarker@gmail.com | NS |
| tusk@gmail.com | TU |
| juggernaut@gmail.com | JU |
2017-07-06 15:07:05 +08:00
@javascript
Scenario: Sign up for an existing user
Given I visit the sign up page
Then I fill the sign up form with
2020-07-06 20:52:42 +08:00
| Full name | E-mail | Password | Password confirmation | Team name |
| Magnus | tusk@gmail.com | asdf1234 | asdf1234 | SpliceGirls |
And I click "Sign up" button
2017-10-10 15:17:55 +08:00
Then I should see "has already been taken"
2017-07-06 15:07:05 +08:00
@javascript
2017-07-06 15:07:05 +08:00
Scenario: Sign up for an non-existent user
Given I visit the sign up page
Then I fill the sign up form with
2020-07-06 20:52:42 +08:00
| Full name | E-mail | Password | Password confirmation | Team name |
| Magnus | magnus@gmail.com | asdf1234 | asdf1234 | SpliceGirls |
And I click "Sign up" button
2018-05-09 19:54:49 +08:00
Then I should be on homepage
@javascript
Scenario: Unsuccessful sign up, password confirmation does not match
Given I visit the sign up page
Then I fill the sign up form with
2020-07-06 20:52:42 +08:00
| Full name | E-mail | Password | Password confirmation | Team name |
| Magnus | magnus@gmail.com | asdf1234 | asdf1234567 | SpliceGirls |
And I click "Sign up" button
2018-01-31 19:05:45 +08:00
Then I should see "doesn't match Password"
@javascript
Scenario: Unsuccessful sign up, team name is missing
Given I visit the sign up page
Then I fill the sign up form with
2020-07-06 20:52:42 +08:00
| Full name | E-mail | Password | Password confirmation |
| Magnus | magnus@gmail.com | asdf1234 | asdf1234 |
And I click "Sign up" button
2018-01-31 19:05:45 +08:00
Then I should see "is too short (minimum is 2 characters)"