mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 05:28:30 +01:00
MDL-81128 reportbuilder: use specific step instead workaround
This commit is contained in:
parent
b2fa19f45d
commit
1ded2b9d48
@ -34,8 +34,7 @@ Feature: Delete course badge already awarded
|
||||
# Navigate to Manage Badges page in order to delete the badge
|
||||
And I navigate to "Badges > Manage badges" in current page administration
|
||||
# Delete the badge
|
||||
And I open the action menu in "<badgename>" "table_row"
|
||||
And I choose "Delete" in the open action menu
|
||||
And I press "Delete" action in the "<badgename>" report row
|
||||
And I press "<deleteoption>"
|
||||
And I am on the "Course 1" "enrolled users" page
|
||||
And I click on "Student 1" "link"
|
||||
|
@ -54,16 +54,14 @@ Feature: Manage badges
|
||||
And I set the field "Manager" to "1"
|
||||
And I press "Save"
|
||||
And I navigate to "Badges > Manage badges" in site administration
|
||||
And I open the action menu in "Badge #1" "table_row"
|
||||
And I choose "Enable access" in the open action menu
|
||||
And I press "Enable access" action in the "Badge #1" report row
|
||||
And I should see "Changes in badge access"
|
||||
And I press "Continue"
|
||||
And I should see "Access to the badges was successfully enabled"
|
||||
Then the following should exist in the "reportbuilder-table" table:
|
||||
| Name | Badge status |
|
||||
| Badge #1 | Available |
|
||||
And I open the action menu in "Badge #1" "table_row"
|
||||
And I choose "Disable access" in the open action menu
|
||||
And I press "Disable access" action in the "Badge #1" report row
|
||||
And I should see "Access to the badges was successfully disabled"
|
||||
And the following should exist in the "reportbuilder-table" table:
|
||||
| Name | Badge status |
|
||||
@ -78,14 +76,12 @@ Feature: Manage badges
|
||||
And I set the field "Manager" to "1"
|
||||
And I press "Save"
|
||||
And I navigate to "Badges > Manage badges" in site administration
|
||||
And I open the action menu in "Badge #1" "table_row"
|
||||
And I choose "Enable access" in the open action menu
|
||||
And I press "Enable access" action in the "Badge #1" report row
|
||||
And I press "Continue"
|
||||
And I open the action menu in "Badge #1" "table_row"
|
||||
And I choose "Award badge" in the open action menu
|
||||
And I press "Award badge" action in the "Badge #1" report row
|
||||
And I set the field "potentialrecipients[]" to "Admin User (moodle@example.com)"
|
||||
And I press "Award badge"
|
||||
And I navigate to "Badges > Manage badges" in site administration
|
||||
And the following should exist in the "reportbuilder-table" table:
|
||||
Then the following should exist in the "reportbuilder-table" table:
|
||||
| Name | Badge status | Recipients |
|
||||
| Badge #1 | Available | 1 |
|
||||
|
@ -38,8 +38,7 @@ Feature: Display badges
|
||||
And I navigate to "Badges > Manage badges" in site administration
|
||||
And I follow "Testing system badge"
|
||||
And I select "Recipients (1)" from the "jump" singleselect
|
||||
And I open the action menu in "Student 1" "table_row"
|
||||
And I choose "View issued badge" in the open action menu
|
||||
And I press "View issued badge" action in the "Student 1" report row
|
||||
Then I should see "Awarded to Student 1"
|
||||
And I should see "This badge has to be awarded by a user with the following role:"
|
||||
And I should not see "Expired"
|
||||
@ -64,8 +63,7 @@ Feature: Display badges
|
||||
And I navigate to "Badges > Manage badges" in site administration
|
||||
And I follow "Testing system badge"
|
||||
And I select "Recipients (1)" from the "jump" singleselect
|
||||
And I open the action menu in "Student 1" "table_row"
|
||||
And I choose "View issued badge" in the open action menu
|
||||
And I press "View issued badge" action in the "Student 1" report row
|
||||
Then I should see "Awarded to Student 1"
|
||||
And I should see "Complete ALL of the listed requirements."
|
||||
And I should see "This badge has to be awarded by a user with the following role:"
|
||||
@ -86,8 +84,7 @@ Feature: Display badges
|
||||
And I press "Continue"
|
||||
# Check badge details are displayed.
|
||||
And I select "Recipients (2)" from the "jump" singleselect
|
||||
And I open the action menu in "Student 1" "table_row"
|
||||
And I choose "View issued badge" in the open action menu
|
||||
And I press "View issued badge" action in the "Student 1" report row
|
||||
Then I should see "Awarded to Student 1"
|
||||
And I should see "Complete ANY of the listed requirements."
|
||||
And I should see "This badge has to be awarded by a user with the following role:"
|
||||
@ -115,8 +112,7 @@ Feature: Display badges
|
||||
And I navigate to "Badges > Manage badges" in site administration
|
||||
And I follow "Testing system badge"
|
||||
And I select "Recipients (1)" from the "jump" singleselect
|
||||
And I open the action menu in "Student 1" "table_row"
|
||||
And I choose "View issued badge" in the open action menu
|
||||
And I press "View issued badge" action in the "Student 1" report row
|
||||
Then I should see "Expires"
|
||||
And I should not see "Expired"
|
||||
|
||||
@ -140,7 +136,6 @@ Feature: Display badges
|
||||
And I navigate to "Badges > Manage badges" in site administration
|
||||
And I follow "Testing system badge"
|
||||
And I select "Recipients (1)" from the "jump" singleselect
|
||||
And I open the action menu in "Student 1" "table_row"
|
||||
And I choose "View issued badge" in the open action menu
|
||||
And I press "View issued badge" action in the "Student 1" report row
|
||||
Then I should see "Expired"
|
||||
And I should not see "Expires"
|
||||
|
Loading…
x
Reference in New Issue
Block a user