Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_glossary
2
Feature: A teacher can choose whether to provide a printer-friendly glossary entries list
3
  In order to print glossaries easily
4
  As a user
5
  I need to provide users a different view to print the glossary contents
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email |
10
      | teacher1 | Teacher | 1 | teacher1@example.com |
11
      | student1 | Student | 1 | student1@example.com |
12
    And the following "courses" exist:
13
      | fullname | shortname | category |
14
      | Course 1 | C1 | 0 |
15
    And the following "course enrolments" exist:
16
      | user | course | role |
17
      | teacher1 | C1 | editingteacher |
18
      | student1 | C1 | student |
19
 
20
  @javascript
21
  Scenario: Printer-friendly glossary view enabled
22
    Given the following "activity" exists:
23
      | course         | C1                        |
24
      | activity       | glossary                  |
25
      | name           | Test glossary name        |
26
      | intro          | Test glossary description |
27
      | allowprintview | 1                         |
28
    And I am on the "Test glossary name" "glossary activity" page logged in as student1
29
    When I add a glossary entry with the following data:
30
      | Concept | Just a test concept |
31
      | Definition | Concept definition |
32
    And I click on "Export entries" "button"
33
    And I click on "Print" "link"
34
    Then I should see "Just a test concept"
35
 
36
  @javascript
37
  Scenario: Printer-friendly glossary view disabled
38
    Given the following "activity" exists:
39
      | course         | C1                        |
40
      | activity       | glossary                  |
41
      | name           | Test glossary name        |
42
      | intro          | Test glossary description |
43
      | allowprintview | 0                         |
44
    And I am on the "Test glossary name" "glossary activity" page logged in as student1
45
    When I add a glossary entry with the following data:
46
      | Concept | Just a test concept |
47
      | Definition | Concept definition |
48
    And "//select[contains(concat(' ', normalize-space(@class), ' '), ' urlselect ')]" "xpath_element" should not exist