scinote-web/features/sessions/sign_up.feature
zmagod 88d7429041 1. fixes failing unit and integration tests
2. fixes gem dependencies issues
3. fixes failing migrations
4. updates depricated factory_girl => factory_bot and fixes related issues

Signed-off-by: zmagod <zmago_devetak@yahoo.com>
2018-01-23 14:54:15 +01:00

49 lines
2 KiB
Gherkin

Feature: Sign up
As a new User
I want to create a new account
So that I can use sciNote
Background:
Given the following users are registered
| email | initials |
| night.slarker@gmail.com | NS |
| tusk@gmail.com | TU |
| juggernaut@gmail.com | JU |
@javascript
Scenario: Sign up for an existing user
Given I visit the sign up page
Then I fill the sign up form with
| Full name | Email | Password | Password confirmation | Team name |
| Magnus | tusk@gmail.com | asdf1234 | asdf1234 | SpliceGirls |
And I click "Sign up" button
Then I should see "has already been taken"
@javascript
Scenario: Sign up for an non-existent user
Given I visit the sign up page
Then I fill the sign up form with
| Full name | Email | Password | Password confirmation | Team name |
| Magnus | magnus@gmail.com | asdf1234 | asdf1234 | SpliceGirls |
And I click "Sign up" button
And Show me the page
Then I should see "SpliceGirls"
And 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
| Full name | Email | Password | Password confirmation | Team name |
| Magnus | magnus@gmail.com | asdf1234 | asdf1234567 | SpliceGirls |
And I click "Sign up" button
Then I should see "doesn't match Password" error message under "password_confirmation_form" field
@javascript
Scenario: Unsuccessful sign up, team name is missing
Given I visit the sign up page
Then I fill the sign up form with
| Full name | Email | Password | Password confirmation |
| Magnus | magnus@gmail.com | asdf1234 | asdf1234 |
And I click "Sign up" button
Then I should see "is too short (minimum is 2 characters)" error message under "team_name_form" field