MDL-86498 badges: Accessibility coverage for badge details and overview
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
@core @core_badges
|
||||
Feature: Badge overview
|
||||
In order to view a badge's information
|
||||
As an user with the capability to view badges
|
||||
I need to access the badge overview page
|
||||
|
||||
Background:
|
||||
Given the following config values are set as admin:
|
||||
| badges_defaultissuername | Test Badge Site |
|
||||
|
||||
@javascript @accessibility @_file_upload
|
||||
Scenario: Test accessibility of badge overview page
|
||||
Given I log in as "admin"
|
||||
And I navigate to "Badges > Add a new badge" in site administration
|
||||
And I set the following fields to these values:
|
||||
| Name | Cool badge |
|
||||
| Description | Badge for cool people |
|
||||
And I upload "badges/tests/behat/badge.png" file to "Image" filemanager
|
||||
And I press "Create badge"
|
||||
When I select "Overview" from the "Badges navigation" singleselect
|
||||
Then the "region-main" "region" should meet accessibility standards with "best-practice" extra tests
|
||||
@@ -23,6 +23,7 @@ Feature: Display badges
|
||||
And I log in as "admin"
|
||||
And I navigate to "Badges > Manage badges" in site administration
|
||||
|
||||
@accessibility
|
||||
Scenario: Display badge without expired date
|
||||
# Enable the badge.
|
||||
Given I press "Enable access" action in the "Testing system badge" report row
|
||||
@@ -43,6 +44,7 @@ Feature: Display badges
|
||||
And I follow "More details"
|
||||
And I should see "Catalan"
|
||||
And I should see "1.1"
|
||||
And the page should meet accessibility standards with "best-practice" extra tests
|
||||
|
||||
Scenario: Display badge with ALL criteria
|
||||
# Add another criterion and enable the badge.
|
||||
|
||||
Reference in New Issue
Block a user