edit_admin_profile.feature 2.7 KB
Newer Older
1
@javascript @core @core_account @core_content
2
Feature: Editing a profile page
3
   In order to edit a profile
4
   As an admin I need to go to Content
5
   So I can edit the admin profile and picture
6 7

Scenario: Editing admin profile page (Bug: 1426983)
8
    # Log in
Gregor Anzelj's avatar
Gregor Anzelj committed
9
    Given I log in as "admin" with password "Kupuh1pa!"
10
    # Updating Profile
11
    When I choose "Profile" in "Content" from main menu
12
    And I follow "About me"
13 14 15 16 17 18
    And I fill in the following:
    | First name | Test     |
    | Last name | Admin     |
    | Student ID | 1234     |
    | Display name  | Test Admin   |
    # Updating Contact information tab
19
    And I scroll to the top
20
    And I follow "Contact information"
21
    And I press "Add email address"
22
    And I fill in the following:
23
    | addnewemail | example22@example.org |
24 25 26 27 28 29 30 31 32 33
    | Official website address | www.catalyst.net.nz   |
    | Personal website address | www.stuff.co.nz |
    | Blog address | www.blog.com |
    | Postal address  | 150 Willis Street  |
    | Town   | Wellington |
    | City/region | CBD  |
    | Home phone | 04928375 |
    | Business phone | 040298375 |
    | Mobile phone | 0272093875482 |
    | Fax number   | 09237842 |
34
    And I select "South Sudan" from "Country"
35 36 37 38 39 40 41
    And I press "Save profile"
    # Verifying the settings saved
    And I should see "Profile saved successfully"
    # Updating Social media tab
    And I follow "Social media"
    And I follow "New social media account"
    And I fill in the following:
42
    | Enter URL | http://github.com/MaharaProject |
43 44 45
    | Your URL or username | https://twitter.com/MaharaProject |
    And I press "Save"
    # Verifying the settings held, navitgating to dashboard page to check
46
    And I choose "Dashboard" from main menu
47 48
    And I should see "Test Admin"
    # Resetting/Editing details
49
    And I choose "Profile" in "Content" from main menu
50
    And I follow "About me"
51 52 53 54 55 56 57 58 59 60
    And I fill in the following:
    | First name   | Admin  |
    | Last name | User  |
    | Student ID ||
    |  Display name   | Admin User|
    And I press "Save profile"
    # Verifing settings saved
    And I should see "Profile saved successfully"
    # Editing contact information
    And I follow "Contact information"
61
    And I press "Add email address"
62 63 64 65 66 67 68 69 70 71 72 73 74
    And I fill in the following:
    | Official website address ||
    | Personal website address ||
    | Blog address ||
    | Postal address  ||
    | Town   ||
    | City/region ||
    | Home phone ||
    | Business phone ||
    | Mobile phone ||
    | Fax number   ||
    And I press "Save profile"
    And I should see "Profile saved successfully"
75
    # Verifying changes has been made navigating to dashboard page to checked
76
    And I choose "Dashboard" from main menu
77
    And I should see "Admin User"