Welcome to mirror list, hosted at ThFree Co, Russian Federation.

getting_started.feature « desktop « features - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bbebd5efa7a42b13f3010e08dccd39a628e2d91b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
@javascript
Feature: new user registration

  Background:
    When I go to the new user registration page
    And I fill in the new user form
    And I submit the form
    Then I should be on the getting started page
    Then I should see the 'getting started' contents

  Scenario: new user goes through the setup wizard
    When I fill in the following:
      | profile_first_name | O             |
    And I confirm the alert after I follow "awesome_button"
    Then I should be on the stream page
    And the publisher should be expanded
    And I close the publisher
    Then I should not see "awesome_button"
    And I should not see any posts in my stream

  Scenario: new user tries to XSS itself
    When I fill in the following:
      | profile_first_name | <script>alert(0)// |
    And I focus the "follow_tags" field
    Then I should see a flash message containing "Hey, <script>alert(0)//!"

  Scenario: new user does not add any tags in setup wizard and cancel the alert
    When I fill in the following:
      | profile_first_name | some name     |
    And I focus the "follow_tags" field
    Then I should see a flash message containing "Hey, some name!"
    When I reject the alert after I follow "awesome_button"
    Then I should be on the getting started page
    And I should see a flash message containing "All right, I’ll wait."

  Scenario: new user skips the setup wizard
    When I confirm the alert after I follow "awesome_button"
    Then I should be on the stream page
    And the publisher should be expanded

  Scenario: first status message is public
    When I confirm the alert after I follow "awesome_button"
    Then I should be on the stream page
    And the publisher should be expanded
    And I should see "Public" within ".aspect-dropdown"

  Scenario: new user without any tags posts first status message
    When I confirm the alert after I follow "awesome_button"
    Then I should be on the stream page
    And the publisher should be expanded
    When I wait for the popovers to appear
    And I click close on all the popovers
    And I submit the publisher
    Then "Hey everyone, I’m #newhere." should be post 1

  Scenario: new user with some tags posts first status message
    When I fill in the following:
      | profile_first_name | some name        |
    And I fill in "tags" with "#rockstar"
    And I press the first ".as-result-item" within "#as-results-tags"
    And I wait until ajax requests finished
    And I follow "awesome_button"
    Then I should be on the stream page
    And the publisher should be expanded
    When I wait for the popovers to appear
    And I click close on all the popovers
    And I submit the publisher
    Then "Hey everyone, I’m #newhere. I’m interested in #rockstar." should be post 1

  Scenario: closing a popover clears getting started
    When I confirm the alert after I follow "awesome_button"
    Then I should be on the stream page
    And I wait for the popovers to appear
    And I click close on all the popovers
    And I close the publisher
    Then I should not see "Welcome to diaspora*"

  Scenario: user fills in bogus data - client side validation
    When I log out manually
    And I go to the new user registration page
    And I fill in the following:
        | user_username        | $%&(/&%$&/=)(/    |
    And I press "Create account"
    Then I should not be able to sign up
    And I should have a validation error on "user_username, user_password, user_email"

    When I fill in the following:
        | user_username     | valid_user                        |
        | user_email        | this is not a valid email $%&/()( |
    And I press "Create account"
    Then I should not be able to sign up
    And I should have a validation error on "user_password, user_email"

    When I fill in the following:
        | user_email        | valid@email.com        |
        | user_password     | 1                      |
    And I press "Create account"
    Then I should not be able to sign up
    And I should have a validation error on "user_password, user_password_confirmation"

  Scenario: User signs up with an already existing username and email and then tries to sign in
    When I log out manually
    And I go to the new user registration page
    And I fill in the new user form
    And I submit the form
    Then I should see a flash message indicating failure
    When I follow "Sign in"
    Then I should not see a flash message indicating failure