profile.feature 2.28 KB
Newer Older
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
1
Feature: Profile
2 3
  Background:
    Given I sign in as a user
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
4 5 6 7 8

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

9 10
  Scenario: I edit profile
    Given I visit profile page
Jerome Dalbert's avatar
Jerome Dalbert committed
11 12
    Then I change my profile info
    And I should see new profile info
13

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

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
20
  Scenario: I change my password
21
    Given I visit profile password page
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
22 23 24
    Then I change my password
    And I should be redirected to sign in page

25 26 27 28
  Scenario: I edit my avatar
    Given I visit profile page
    Then I change my avatar
    And I should see new avatar
29 30 31 32 33 34 35 36
    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
37

38 39
  Scenario: My password is expired
    Given my password is expired
40
    And I am not an ldap user
41
    Given I visit profile password page
42 43 44 45
    Then I redirected to expired password page
    And I submit new password
    And I redirected to sign in page

46
  Scenario: I unsuccessfully change my password
47
    Given I visit profile password page
48 49 50
    When I unsuccessfully change my password
    Then I should see a password error message

Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
51
  Scenario: I reset my token
randx's avatar
randx committed
52
    Given I visit profile account page
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
53 54
    Then I reset my token
    And I should see new token
randx's avatar
randx committed
55 56 57 58 59

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

61 62 63 64 65
  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

66 67 68 69 70 71 72 73 74 75 76 77
  @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