Commit a5a8424f authored by Steven Spinelli's avatar Steven Spinelli Committed by Robert Lyon
Browse files

Behat Bug 1829431 Allow quota details in 'User details' report

adjusted problem areas of script

Change-Id: Id44ac3724a6d974aef295a69b821e76265554b6e
parent b618d858
......@@ -6,32 +6,86 @@ So I can benefit from seeing the current user detail state of an institution
Background:
Given the following "institutions" exist:
| name | displayname | registerallowed | registerconfirm |
| instone | Institution One | ON | ON |
| name | displayname | registerallowed | registerconfirm |defaultquota|
| instone | Institution One | ON | ON | 20MB |
| insttwo | Institution Two | ON | ON | 30MB |
| instthree | Institution Three | ON | ON | 50MB |
And the following "users" exist:
| username | password | email | firstname | lastname | institution | authname | role |
| UserA | Kupuh1pa! | UserA@example.org | Angela | User | instone | internal | member |
| UserB | Kupuh1pa! | UserB@example.org | Bob | User | instone | internal | member |
| UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | instone | internal | member |
| UserB | Kupuh1pa! | UserB@example.org | Bob | User | insttwo | internal | member |
| UserC | Kupuh1pa! | UserC@example.org | Cecilia | User | instthree | internal | member |
Scenario: Viewing user details statistics
Given I log in as "UserA" with password "Kupuh1pa!"
And I choose "Files" in "Create" from main menu
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I log out
Given I log in as "UserB" with password "Kupuh1pa!"
And I choose "Files" in "Create" from main menu
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I log out
Given I log in as "UserC" with password "Kupuh1pa!"
And I choose "Files" in "Create" from main menu
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I attach the file "Image1.jpg" to "File"
And I log out
Scenario: Viewing user details statistics
Given I log in as "admin" with password "Kupuh1pa!"
# Users without an institution
When I choose "Reports" from administration menu
And I press "Configure report"
And I set the select2 value "Institution One" for "reportconfigform_institution"
And I set the select2 value "All institutions" for "reportconfigform_institution"
And I wait "1" seconds
And I set the select2 value "User details" for "reportconfigform_typesubtype"
And I fill in "To:" with "+1 day" date in the format "Y/m/d"
And I fill in "To:" with "tomorrow" date in the format "Y/m/d"
And I expand the section "Columns"
And I check "Quota used"
And I press "Submit"
Then I should see "User details | Institution One"
And I should see "8%" in the "Angela" row
Then I should see "User details | All institutions"
And I should see "42%" in the "Angela" row
And I should see "57%" in the "Bob" row
And I should see "68%" in the "Cecilia" row
When I click on "Quota used"
Then I should see "68%" in the "tr.r0" "css_element"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment