summaryrefslogtreecommitdiff
path: root/features/profile/profile.feature
blob: fd132e1cd8083b5da0f18ed0b15407dbbcf652bd (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
109
110
111
112
113
114
115
116
117
118
@profile
Feature: Profile
  Background:
    Given I sign in as a user

  Scenario: I look at my profile
    Given I visit profile page
    Then I should see my profile info

  Scenario: I can see groups I belong to
    Given I have group with projects
    When I visit profile page
    And I click on my profile picture
    Then I should see my user page
    And I should see groups I belong to

  Scenario: I edit profile
    Given I visit profile page
    Then I change my profile info
    And I should see new profile info

  Scenario: I change my password without old one
    Given I visit profile password page
    When I try change my password w/o old one
    Then I should see a missing password error message
    And I should be redirected to password page

  Scenario: I change my password
    Given I visit profile password page
    Then I change my password
    And I should be redirected to sign in page

  Scenario: I edit my avatar
    Given I visit profile page
    Then I change my avatar
    And I should see new avatar
    And I should see the "Remove avatar" button

  Scenario: I remove my avatar
    Given I visit profile page
    And I have an avatar
    When I remove my avatar
    Then I should see my gravatar
    And I should not see the "Remove avatar" button

  Scenario: My password is expired
    Given my password is expired
    And I am not an ldap user
    Given I visit profile password page
    Then I redirected to expired password page
    And I submit new password
    And I redirected to sign in page

  Scenario: I unsuccessfully change my password
    Given I visit profile password page
    When I unsuccessfully change my password
    Then I should see a password error message

  Scenario: I reset my token
    Given I visit profile account page
    Then I reset my token
    And I should see new token

  Scenario: I visit history tab
    Given I have activity
    When I visit profile history page
    Then I should see my activity

  Scenario: I visit my user page
    When I visit profile page
    And I click on my profile picture
    Then I should see my user page

  Scenario: I can manage application
    Given I visit profile applications page
    Then I click on new application button
    And I should see application form
    Then I fill application form out and submit
    And I see application
    Then I click edit
    And I see edit application form
    Then I change name of application and submit
    And I see that application was changed
    Then I visit profile applications page
    And I click to remove application
    Then I see that application is removed

  @javascript
  Scenario: I change my application theme
    Given I visit profile design page
    When I change my application theme
    Then I should see the theme change immediately
    And I should receive feedback that the changes were saved

  @javascript
  Scenario: I change my code preview theme
    Given I visit profile design page
    When I change my code preview theme
    Then I should receive feedback that the changes were saved

  @javascript
  Scenario: I see the password strength indicator
    Given I visit profile password page
    When I try to set a weak password
    Then I should see the input field yellow

  @javascript
  Scenario: I see the password strength indicator error
    Given I visit profile password page
    When I try to set a short password
    Then I should see the input field red
    And I should see the password error message

  @javascript
  Scenario: I see the password strength indicator with success
    Given I visit profile password page
    When I try to set a strong password
    Then I should see the input field green