Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
72bb8f3b
Commit
72bb8f3b
authored
Dec 13, 2018
by
Steven Spinelli
Committed by
Cecilia Vela Gurovic
Mar 11, 2019
Browse files
Behat Bug 1808049 Update account settings functionality
Change-Id: I7750db24c0768c4193e19a26746e247acd4d53f1
parent
365b84b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/behat/features/settings/change_account_settings.feature
View file @
72bb8f3b
...
...
@@ -2,16 +2,59 @@
Feature
:
Mahara users can change their account settings
As a mahara user
I need to change my account settings
1) user can change account notifications settings
--- a. User selects "Email" from "New page access"
--- b. User selects "None" from "Comment"
--- c. User cannot select "None" from "Message from other users"
--- d. User cannot select "None" from "System message"
2) user can change account preferences settings
--- a. User changes "Password" functionality
--- b. User changes "Username"
--- c. User changes "Friends control" to "Nobody may add me as a friend"
Background
:
Given the following "users" exist
:
|
username
|
password
|
email
|
firstname
|
lastname
|
institution
|
authname
|
role
|
|
UserA
|
Kupuh1pa!
|
UserA@example.org
|
Angela
|
User
|
mahara
|
internal
|
member
|
Scenario
:
C
hange notifications
Scenario
:
User c
hange
s
notifications
settings
Given
I log in as
"UserA"
with password
"Kupuh1pa!"
And
I choose
"Notifications"
in
"Settings"
from user menu
And
I select
"Email"
from
"activity_viewaccess"
And
I select
"Inbox"
from
"Comment"
And
I select
"None"
from
"Feedback on annotations"
And
I select
"Inbox"
from
"Group message"
And
I select
"Email digest"
from
"Institution message"
And
I select
"Inbox"
from
"Message from other users"
And
"None"
"option"
in the
"#activityprefs_activity_usermessage"
"css_element"
should not be visible
And
"None"
"option"
in the
"#activityprefs_activity_maharamessage"
"css_element"
should not be visible
And
I select
"Email"
from
"New forum post"
And
I select
"Email digest"
from
"Peer assessment"
And
I select
"Inbox"
from
"System message"
And
I select
"Inbox"
from
"Wall post"
And
I select
"Inbox"
from
"Watchlist"
When
I press
"Save"
And
I should see
"Preferences saved"
And
I should not see
"Delete account"
Scenario
:
User changes Preference settings
Given
I log in as
"UserA"
with password
"Kupuh1pa!"
When
I choose
"Preferences"
in
"Settings"
from user menu
Then
I should see
"Preferences"
in the
".section-heading"
"css_element"
And
I should see
"New password"
in the
"#accountprefs h3"
"css_element"
When
I fill in
"Current password"
with
"Kupuh1pa!"
And
I fill in
"New password"
with
"Password123!"
And
I fill in
"Confirm password"
with
"Password123!"
And
I press
"Save"
Then
I should see
"Preferences saved"
And
I should see
"Change username"
in the
"//form[@id='accountprefs']/h3[contains(text(),'Change username')]"
"xpath_element"
When
I fill in
"New username"
with
"UserAA"
And
I press
"Save"
Then
I should see
"There was an error with submitting this form. Please check the marked fields and try again."
And
I fill in
"Password123!"
for
"accountprefs_oldpasswordchangeuser"
And
I press
"Save"
And
I should see
"Preferences saved"
And I should see an "#accountprefs_friendscontrol_container > div.radio-wrapper > div
:
first-child
>
input.radio"
element
And
I press
"Save"
Then
I should see
"Preferences saved"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment