mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-09 00:49:07 +08:00
30 lines
1.1 KiB
Gherkin
30 lines
1.1 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'
|
||
|
|
||
|
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
|
||
|
Then I should see 'SpliceGirls'
|
||
|
And I should be on homepage
|