From 5289581d06d9b596976984808a4bf805f802d8a5 Mon Sep 17 00:00:00 2001
From: Jun Pataleta This is a test. This is a test.
Test content.
{{{ intro }}}
diff --git a/blocks/myoverview/tests/behat/block_myoverview_zerostate.feature b/blocks/myoverview/tests/behat/block_myoverview_zerostate.feature index 4eda8ae1778..79cece88b26 100644 --- a/blocks/myoverview/tests/behat/block_myoverview_zerostate.feature +++ b/blocks/myoverview/tests/behat/block_myoverview_zerostate.feature @@ -70,3 +70,8 @@ Feature: Zero state on my overview block And "Create course" "button" should exist And I click on "Create course" "button" And I should see "Add a new course" + + @accessibility + Scenario: Evaluate the accessibility of the My courses (zero state) + When I am on the "My courses" page logged in as "manager" + Then the page should meet accessibility standards From eb38033024872155598d860c89f553f59d7bb5df Mon Sep 17 00:00:00 2001 From: Jun Pataleta{{#str}} noitems, block_recentlyaccesseditems {{/str}}
-{{$nocoursestring}}{{#str}} nocourses, core {{/str}}{{/nocoursestring}}
{{#newcourseurl}} {{#str}} createnewcourse, core {{/str}} {{/newcourseurl}} -{{{ intro }}}
diff --git a/mod/data/tests/behat/view_entries.feature b/mod/data/tests/behat/view_entries.feature index 52e02874763..4ee31d83996 100644 --- a/mod/data/tests/behat/view_entries.feature +++ b/mod/data/tests/behat/view_entries.feature @@ -183,3 +183,18 @@ Feature: Users can view and search database entries | param1 | param3 | autolink | | 0 | 0 | should not | | 1 | 1 | should | + + @javascript @accessibility + Scenario: Check the accessibility of the database entries page (zero state) + When I am on the "Test database name" "data activity" page logged in as "teacher1" + Then I should see "No entries yet" + And the page should meet accessibility standards + + @javascript @accessibility + Scenario: Check the accessibility of the database entries page + Given the following "mod_data > entries" exist: + | database | user | Test field name | Test field 2 name | Test field 3 name | + | data1 | student1 | Student entry 1 | Some student content 1 | http://moodle.com | + | data1 | teacher1 | Teacher entry 2 | Some teacher content 2 | http://moodle.com | + When I am on the "Test database name" "data activity" page logged in as teacher1 + Then the page should meet accessibility standards diff --git a/mod/data/tests/behat/zero_state.feature b/mod/data/tests/behat/zero_state.feature index 4d5b385d40f..8ee696ce343 100644 --- a/mod/data/tests/behat/zero_state.feature +++ b/mod/data/tests/behat/zero_state.feature @@ -65,3 +65,9 @@ Feature: Zero state page (no fields created) Then I click on "Use this preset" "button" And I should not see "Field mappings" And I should see "Image" in the "image" "table_row" + + @javascript @accessibility + Scenario: Check the accessibility of the database activity zero state + When I am on the "Test database name" "data activity" page logged in as "teacher1" + Then I should see "Start building your activity" + And the page should meet accessibility standards From 020756e0f12e1e710fc1931c3aebec5a5597587d Mon Sep 17 00:00:00 2001 From: Jun Pataleta