This commit is contained in:
Sara Arjona
2024-09-09 17:21:54 +02:00
2 changed files with 6 additions and 5 deletions
+5 -5
View File
@@ -51,8 +51,8 @@ Feature: Manage badges
Scenario Outline: Filter managed badges
Given the following "core_badges > Badges" exist:
| name | status | version |
| Badge #2 | 1 | 2.0 |
| name | status | version | image |
| Badge #2 | 1 | 2.0 | badges/tests/behat/badge.png |
And I log in as "admin"
When I navigate to "Badges > Manage badges" in site administration
And I click on "Filters" "button"
@@ -124,9 +124,9 @@ Feature: Manage badges
| user1 | User | One |
| user2 | User | Two |
And the following "core_badges > Badges" exist:
| name | status |
| Badge #2 | 1 |
| Badge #3 | 1 |
| name | status | image |
| Badge #2 | 1 | badges/tests/behat/badge.png |
| Badge #3 | 1 | badges/tests/behat/badge.png |
And the following "core_badges > Issued badges" exist:
| badge | user |
| Badge #1 | user1 |
@@ -37,6 +37,7 @@ class behat_core_badges_generator extends behat_generator_base {
'datagenerator' => 'badge',
'required' => [
'name',
'image',
],
'switchids' => [
'course' => 'courseid',