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
86c956dc
Commit
86c956dc
authored
Mar 10, 2015
by
Robert Lyon
Committed by
Gerrit Code Review
Mar 10, 2015
Browse files
Merge "Behat Test: Quota notification (Bug 1367539)"
parents
99983701
ddf58211
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/behat/features/group/notification_quota.feature
0 → 100644
View file @
86c956dc
@javascript
@core
@core_group
Feature
:
Notification when a user is about to reach his quota
In order to verify notification when reaching a quota
As an admin create users
So I can change their quota limit and verify notification
Background
:
Given the following "users" exist
:
|
username
|
password
|
email
|
firstname
|
lastname
|
institution
|
authname
|
role
|
|
bob
|
Password1
|
bob@example.com
|
Bob
|
Bobby
|
mahara
|
internal
|
member
|
Scenario Outline
:
When
quota notification threshold is changed, send notifications to users who are now over threshold (Bug 1367539)
# Log in as "Admin" user
Given
I log in as
"admin"
with password
"Password1"
# Verifying log in was successful
And
I should see
"Admin User"
# Modifying user quota quota to 2MB
And
I follow
"Administration"
And
I follow
"Extensions"
And
I follow
"Configuration for artefact file"
And
I follow
"Default user quota"
# Clearning the tex box first to enter 2 MB
And
I fill in
"Default quota"
with
""
And
I fill in
"Default quota"
with
"2"
# Update already existing users
And
I check
"Update user quotas"
# Modifying user notification threshold to multiple %
And
I fill in
"Quota notification threshold"
with
"<threshold>"
And
I wait
"3"
seconds
And
I press
"Save"
# Verifying changes were made
And
I should see
"Settings saved"
# Log out as "Admin user"
And
follow
"Logout"
# Log in as user 1
When
I log in as
"bob"
with password
"Password1"
# Verifying log in was successful
And
I should see
"Bob Bobby"
# Upload files to reach quota threshold of 50%
And
I choose
"Files"
in
"Content"
And
I attach the file
"Image1.jpg"
to
"Upload file"
And
I attach the file
"Image2.png"
to
"Upload file"
And
I attach the file
"Image3.png"
to
"Upload file"
# Verifying notification for reaching user quota threshold have been received
And
I follow
"Inbox"
# Regression testing for previous errors
And
I should not see
"Call stack"
And
I should see
"Your file storage is almost full"
Examples
:
|
threshold
|
|
50
|
|
30
|
|
25
|
Write
Preview
Supports
Markdown
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