@@ -3,19 +3,21 @@ Feature: Block accessreview results
33 In order to overview accessibility information on my course
44 As a manager
55 I can add the accessreview block in a course after running the scheduled task
6+
67 Background :
7- Given I log in as "admin"
8- And the following "courses" exist:
8+ Given the following "courses" exist:
99 | fullname | shortname | format |
1010 | Course 1 | C1 | topics |
1111 And the following "activities" exist:
1212 | activity | name | intro | course | idnumber |
1313 | label | Label one | <b >Bold text is bold .</b > | C1 | id001 |
1414 And I run the scheduled task "\t ool_brickfield\t ask\b ulk_process_courses"
15+
16+ Scenario : View accessreview block results on a course
17+ Given I log in as "admin"
1518 And I am on "Course 1" course homepage with editing mode on
16- And I add the "Accessibility Review" block
19+ When I add the "Accessibility Review" block
1720 Then I should see "Accessibility Review"
18- Scenario : View accessreview block results on a course
1921 And I should not see "No accessibility results data was found."
2022 And I should see "Image"
2123 And I should see "Layout"
@@ -25,8 +27,12 @@ Feature: Block accessreview results
2527 And I should see "Text"
2628 And I should see "View"
2729 And I should see "Toggle highlighting"
30+
2831 Scenario : Toggle highlighting on/off
29- And I should see "Toggle highlighting"
32+ Given I log in as "admin"
33+ And I am on "Course 1" course homepage with editing mode on
34+ When I add the "Accessibility Review" block
35+ Then I should see "Toggle highlighting"
3036 And ".block_accessreview_view" "css_element" should be visible
31- When I click on "Toggle highlighting" "text"
32- Then ".block_accessreview_view" "css_element" should not be visible
37+ And I click on "Toggle highlighting" "text"
38+ And ".block_accessreview_view" "css_element" should not be visible
0 commit comments