diff --git a/badges/tests/behat/delete_awarded_badge.feature b/badges/tests/behat/delete_awarded_badge.feature index 8d917144a51..39ae200b387 100644 --- a/badges/tests/behat/delete_awarded_badge.feature +++ b/badges/tests/behat/delete_awarded_badge.feature @@ -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 "" "table_row" - And I choose "Delete" in the open action menu + And I press "Delete" action in the "" report row And I press "" And I am on the "Course 1" "enrolled users" page And I click on "Student 1" "link" diff --git a/badges/tests/behat/manage_badges.feature b/badges/tests/behat/manage_badges.feature index c06fabc29ce..d9b6b0055c9 100644 --- a/badges/tests/behat/manage_badges.feature +++ b/badges/tests/behat/manage_badges.feature @@ -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 | diff --git a/badges/tests/behat/view_badge.feature b/badges/tests/behat/view_badge.feature index 1f7795b3b9b..2a82efa3efa 100644 --- a/badges/tests/behat/view_badge.feature +++ b/badges/tests/behat/view_badge.feature @@ -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"