diff --git a/test/behat/features/account/ChangeAccountSettings.feature b/test/behat/features/account/change_account_settings.feature similarity index 59% rename from test/behat/features/account/ChangeAccountSettings.feature rename to test/behat/features/account/change_account_settings.feature index 29c38f86a9d90987470e16d5038ad86e7b0c4060..52157a6c5c9c8214acd6281af66c86c5fdb0891d 100644 --- a/test/behat/features/account/ChangeAccountSettings.feature +++ b/test/behat/features/account/change_account_settings.feature @@ -1,20 +1,12 @@ -@javascript @core @account +@javascript @core @core_account Feature: Mahara users can change their account settings As a mahara user I need to change my account settings Background: - Given the following "users" exist: + Given the following "users" exist: | username | password | email | firstname | lastname | institution | authname | role | | userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member | - Scenario: Change password - Given I log in as "userA" with password "Password1" - And I follow "Settings" - And I fill in "oldpassword" with "Password1" - And I fill in "password1" with "Passwordnew" - And I fill in "password2" with "Passwordnew" - And I press "Save" - Then I should see "Preferences saved" Scenario: Change notifications Given I log in as "userA" with password "Password1" diff --git a/test/behat/features/account/change_reset_password.feature b/test/behat/features/account/change_reset_password.feature deleted file mode 100644 index 23b36d59f91e88da0f9c0c4900180ab10eb5e7ea..0000000000000000000000000000000000000000 --- a/test/behat/features/account/change_reset_password.feature +++ /dev/null @@ -1,37 +0,0 @@ -@javascript @core @core_administration -Feature: Changing password through settings - In order to change the admin password - As an admin I log in and go to settings - So I can set up the admin's new password - -Scenario: Changing admin password through settings option (Selenium) - # Log in as admin - Given I log in as "admin" with password "Password1" - # Verifying log in was successful - And I should see "Admin User" - # Navigating to settings - And I follow "Settings" - And I fill in the following: - | Current password | Password1 | - | New password | mahara2 | - | Confirm password | mahara2 | - And I press "Save" - # Verifying the preferences saved - And I should see "Preferences saved" - And I follow "Logout" - # Logging in with the new password - When I log in as "admin" with password "mahara2" - # Verifying that the log in was a success - And I should see "Welcome" - # Navigating to the settings - And I follow "Settings" - And I fill in the following: - | Current password | mahara2 | - | New password | Password1 | - | Confirm password | Password1 | - And I press "Save" - And I follow "Logout" - # Logging in as admin with the new passsword - Then I log in as "admin" with password "Password1" - # Verifying it worked - And I should see "Welcome" diff --git a/test/behat/features/account/edit_admin_profile.feature b/test/behat/features/account/edit_admin_profile.feature index 35919bfd2320f319b0c8a322d4a9f9a37cf607a1..5ad9b0198bed63d94a4c90f4bed836ba876e9c21 100644 --- a/test/behat/features/account/edit_admin_profile.feature +++ b/test/behat/features/account/edit_admin_profile.feature @@ -1,4 +1,4 @@ -@javascript @core @core_content +@javascript @core @core_account @core_content Feature: Editing a profile page In order to edit a profile page As an admin I need to go to Content @@ -68,6 +68,6 @@ Scenario: Editing admin profile page (Bug: 1426983) | Fax number || And I press "Save profile" And I should see "Profile saved successfully" - # Verifying changes has been made navigating to dashboard page to checkcd .. + # Verifying changes has been made navigating to dashboard page to checked Then I follow "Dashboard" And I should see "Admin User" diff --git a/test/behat/features/account/edit_profile.feature b/test/behat/features/account/edit_profile.feature deleted file mode 100644 index 642695d75e4949e58a7b953228ca20f2102b5b4b..0000000000000000000000000000000000000000 --- a/test/behat/features/account/edit_profile.feature +++ /dev/null @@ -1,53 +0,0 @@ -@javascript @core @profile -Feature: Mahara users can have their profile - As a mahara user - I can manage my profile - Background: - Given the following "users" exist: - | username | password | email | firstname | lastname | institution | authname | role | - | userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member | - | userB | Password1 | test02@example.com | Son | Nguyen | mahara | internal | member | - | userC | Password1 | test03@example.com | Jack | Smith | mahara | internal | member | - | userD | Password1 | test04@example.com | Eden | Wilson | mahara | internal | member | - | userE | Password1 | test05@example.com | Emily | Pham | mahara | internal | member | - And the following "institutions" exist: - | name | displayname | registerallowed | registerconfirm | members | staff | admins | - | instone | Institution One | ON | OFF | userB | | userA | - | insttwo | Institution Two | ON | ON | userB,userC | userD | userA | - And the following "groups" exist: - | name | owner | description | grouptype | open | invitefriends | editroles | submittableto | allowarchives | members | staff | - | group 01 | userA | This is group 01 | standard | ON | ON | all | ON | ON | userB, userC | userD | - @javascript - Scenario: Edit Profile - Given I log in as "userE" with password "Password1" - When I click on "Content" - Then I should see "Profile" - And the "firstname" field should contain "Emily" - And I set the following fields to these values: - | First name | Tiger | - | Last name | Wood | - | Student ID | 1234 | - | Display name | Golf Legend | - | Introduction |
This is my introduction.
My name is Wood
| - And I click on "Contact information" - And I should see "Email address" - And I should see "Official website address" - And I set the following fields to these values: - | Official website address | www.catalyst.net.nz | - | Personal website address | www.stuff.co.nz | - | Blog address | www.blog.com | - | Postal address | 150 Willis Street, Te Aro | - | City/region | Wellington | - | Country | New Zealand | - | Home phone | +64-4-928375 | - | Business phone | +64-4-0298375 | - | Mobile phone | 0272093875482 | - | Fax number | 09237842 | - And I click on "Social media" - And I should see "New social media account" - And I click on "General" - And I should see "Occupation" - When I fill in "occupation" with "Software Engineer" - When I fill in "industry" with "IT" - When I press "Save profile" - Then I should see "Profile saved successfully" diff --git a/test/behat/features/account/user_change_password.feature b/test/behat/features/account/user_change_password.feature index 7e488956b490e840b4e60c2f4f1edb340d9a5900..db576d501bcf994cf7655521a22d185049b4a699 100644 --- a/test/behat/features/account/user_change_password.feature +++ b/test/behat/features/account/user_change_password.feature @@ -1,4 +1,4 @@ -@javascript @core @core_administration +@javascript @core @core_account Feature: Creating users and an institution enrolling users and changing their passwords In order to change user passwords successfully As an admin create users and create an institution diff --git a/test/behat/features/account/visible_astrix_message.feature b/test/behat/features/account/visible_astrix_message.feature deleted file mode 100644 index 218a560c8be460e501ec3463fb3055d1ce79e7dc..0000000000000000000000000000000000000000 --- a/test/behat/features/account/visible_astrix_message.feature +++ /dev/null @@ -1,18 +0,0 @@ - @javascript @core @core_messages @core_accessibility - Feature: Visible required fields astrix in Messaging - In order to see astrix for required fields when sending a message - As an admin - So I can know I am required to fill those fields in so I can send the message - - Scenario: Sending a message in order to see astrix for required fields - Given I log in as "admin" with password "Password1" - Given the following "users" exist: - | username | password | email | firstname | lastname | institution | authname | role | - | userA | Password1 | test01@example.com | Pete | Mc | mahara | internal | member | - And I follow "Administration" - And I follow "Users" - And I follow "Pete" - And I follow "Send message" - And I should see "Recipients *" - And I should see "Subject *" - And I should see "Message *"