Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@tool @tool_brickfield
2
Feature: Brickfield activityresults
3
 
4
  Background:
5
    Given the following "courses" exist:
6
      | fullname | shortname | category | description               |
7
      | Course 1 | C1        | 0        | <b> Description text </b> |
8
    And the following "activities" exist:
9
      | activity | name      | intro                              | course | idnumber |
10
      | label    | Label one | <b>Bold text is bold.</b>          | C1     | id001    |
11
      | label    | Label two | <a href="modle.org">Click here</a> | C1     | id002    |
12
    And the following config values are set as admin:
13
      | analysistype | 1 | tool_brickfield |
14
 
15
  @javascript
16
  Scenario: Test the Brickfield accessibility tool plugin
17
    Given I log in as "admin"
18
    And I navigate to "Plugins > Admin tools > Accessibility > Brickfield registration" in site administration
19
    And I set the field "id_key" to "123456789012345678901234567890ab"
20
    And I set the field "id_hash" to "ab123456789012345678901234567890"
21
    And I press "Activate"
22
    Then I should see "Your accessibility toolkit is functional while being validated."
23
    And I navigate to "Plugins > Admin tools > Accessibility > Reports" in site administration
24
    And I press "Submit for analysis"
25
    Then I should see "The global (course independent) content has been scheduled for analysis."
26
    And I am on "Course 1" course homepage
27
    And I navigate to "Accessibility toolkit" in current page administration
28
    And I press "Submit for analysis"
29
    Then I should see "This course has been scheduled for analysis."
30
    And I run the scheduled task "\tool_brickfield\task\process_analysis_requests"
31
    And I run the scheduled task "\tool_brickfield\task\bulk_process_courses"
32
    And I run the scheduled task "\tool_brickfield\task\bulk_process_caches"
33
    And I navigate to "Accessibility toolkit" in current page administration
34
    And I should see "Error details: course Course 1"
35
    And I should see "The overall page content length"
36
    And I should see "Bold (b) elements should not be used"
37
    And I should see "Link text should be descriptive"
38
    And I follow "Activity breakdown"
39
    Then I should see "Results per activity: course Course 1"
40
    And I navigate to "Plugins > Admin tools > Accessibility > Brickfield registration" in site administration
41
    And I set the field "id_key" to "123456789012345678901234567890ab"
42
    And I set the field "id_hash" to "ab123456789012345678901234567890"
43
    And I press "Activate"
44
    And I navigate to "Plugins > Admin tools > Accessibility > Reports" in site administration
45
    And I should see "Error details: all reviewed courses (2 courses)"
46
    And I follow "Activity breakdown"
47
    Then I should see "Results per activity: all reviewed courses (2 courses)"
48
    And I follow "Content types"
49
    Then I should see "Results per content type: all reviewed courses (2 courses)"