|
1 | 1 | Feature: Hacker management |
2 | | - Scenario: Users can register |
3 | | - Given I'm not logged in |
4 | | - And I go to the new hacker page |
5 | | - And I fill in "Email" with "steve@example.com" |
6 | | - And I fill in "Username" with "steve" |
7 | | - And I fill in "Password" with "foobar" |
8 | | - And I fill in "Confirm Password" with "foobar" |
9 | | - When I press "Create account" |
10 | | - Then I should see "Account created." |
11 | | - And I should be on the main page |
12 | | - Scenario: No duplicate usernames |
13 | | - Given there's a hacker with the username "steve" |
14 | | - And I'm not logged in |
15 | | - And I go to the new hacker page |
16 | | - And I fill in "Email" with "steve@example.com" |
17 | | - And I fill in "Username" with "steve" |
18 | | - And I fill in "Password" with "foobar" |
19 | | - And I fill in "Confirm Password" with "foobar" |
20 | | - When I press "Create account" |
21 | | - Then I should see "There were some problems" |
22 | | - And I should be on the new hacker page |
23 | | - Scenario: Hacker pages |
24 | | - Given there's a hacker with the username "steve" |
25 | | - When I go to the hacker page for "steve" |
26 | | - Then I should see "steve's page" |
27 | | - Scenario: Going to your profile |
28 | | - Given I'm logged in as "steve" |
29 | | - And I go to the home page |
30 | | - When I follow "Your Page" |
31 | | - Then I should be on the hacker page for "steve" |
32 | | - And I should not see "Send steve a message" |
33 | 2 | Scenario: Following Hackers |
34 | 3 | Given there's a hacker with the username "fela" |
35 | 4 | And I'm logged in as "steve" |
|
0 commit comments