Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 18... Línea 18...
18
      | student1 | C1 | student |
18
      | student1 | C1 | student |
19
    And the following "activities" exist:
19
    And the following "activities" exist:
20
      | activity | name               | intro                     | displayformat  | course | idnumber |
20
      | activity | name               | intro                     | displayformat  | course | idnumber |
21
      | glossary | Test glossary name | Test glossary description | fullwithauthor | C1     | g1       |
21
      | glossary | Test glossary name | Test glossary description | fullwithauthor | C1     | g1       |
22
    And the following "mod_glossary > categories" exist:
22
    And the following "mod_glossary > categories" exist:
23
      | glossary | name            |
23
      | glossary | name                                                                                                                          |
24
      | g1       | The ones I like |
24
      | g1       | <span lang=\"en\" class=\"multilang\">The ones I like</span><span lang=\"fr\" class=\"multilang\">Ceux qui me plaisent</span> |
25
      | g1       | All for you     |
25
      | g1       | <span lang=\"en\" class=\"multilang\">All for you</span><span lang=\"fr\" class=\"multilang\">Tout pour toi</span>            |
-
 
26
 
26
    And the following "mod_glossary > entries" exist:
27
    And the following "mod_glossary > entries" exist:
-
 
28
      | glossary | concept                                                                                             | definition                                                                                                              | user     | categories                                                                                                                    |
27
      | glossary | concept  | definition     | user     | categories      |
29
      | g1       | <span lang="en" class="multilang">Eggplant</span><span lang="fr" class="multilang">Aubergine</span> | <span lang="en" class="multilang">Sour eggplants</span><span lang="fr" class="multilang">Aubergines aigres</span>       | teacher1 | <span lang=\"en\" class=\"multilang\">All for you</span><span lang=\"fr\" class=\"multilang\">Tout pour toi</span>            |
28
      | g1       | Eggplant | Sour eggplants | teacher1 | All for you     |
30
      | g1       | 7up                                                                                                 | <span lang="en" class="multilang">7up is a softdrink</span><span lang="fr" class="multilang">7up est une boisson</span> | teacher1 | <span lang=\"en\" class=\"multilang\">The ones I like</span><span lang=\"fr\" class=\"multilang\">Ceux qui me plaisent</span> |
29
      | g1       | Cucumber | Sweet cucumber | student1 | The ones I like |
31
      | g1       | <span lang="en" class="multilang">Cucumber</span><span lang="fr" class="multilang">Concombre</span> | <span lang="en" class="multilang">Sweet cucumber</span><span lang="fr" class="multilang">Doux concombre</span>          | student1 | <span lang=\"en\" class=\"multilang\">The ones I like</span><span lang=\"fr\" class=\"multilang\">Ceux qui me plaisent</span> |
-
 
32
    And the "multilang" filter is "on"
-
 
33
    And the "multilang" filter applies to "content and headings"
-
 
34
    And I log out
30
    And I am on the "Test glossary name" "glossary activity" page logged in as teacher1
35
    And I am on the "Test glossary name" "glossary activity" page logged in as teacher1
Línea 31... Línea 36...
31
 
36
 
32
  @javascript
37
  @javascript
33
  Scenario: Search by keyword and browse by alphabet
38
  Scenario: Search by keyword and browse by alphabet
34
    When I set the field "hook" to "cucumber"
39
    When I set the field "hook" to "cucumber"
35
    And I press "Search"
40
    And I press "Search"
36
    Then I should see "Sweet cucumber"
41
    Then I should see "Sweet cucumber"
-
 
42
    And I should see "Search: cucumber"
-
 
43
    And I set the field "hook" to "aubergine"
-
 
44
    And I press "Search"
-
 
45
    And I should see "Sour eggplants"
-
 
46
    And I should see "Search: aubergine"
37
    And I should see "Search: cucumber"
47
    And I should see "E" in the ".glossarycategoryheader" "css_element"
38
    And I click on "E" "link" in the ".entrybox" "css_element"
48
    And I click on "E" "link" in the ".entrybox" "css_element"
39
    And I should see "Sour eggplants"
49
    And I should see "Sour eggplants"
-
 
50
    And I should not see "Sweet cucumber"
-
 
51
    And I should not see "No entries found in this section"
-
 
52
    And I click on "Special" "link" in the ".entrybox" "css_element"
-
 
53
    And I should see "7up"
-
 
54
    And I should not see "Sweet cucumber"
-
 
55
    And I should not see "Sour eggplants"
40
    And I should not see "Sweet cucumber"
56
    And I should not see "No entries found in this section"
41
    And I click on "X" "link" in the ".entrybox" "css_element"
57
    And I click on "X" "link" in the ".entrybox" "css_element"
42
    And I should not see "Sweet cucumber"
58
    And I should not see "Sweet cucumber"
Línea 43... Línea 59...
43
    And I should see "No entries found in this section"
59
    And I should see "No entries found in this section"
-
 
60
 
-
 
61
  @javascript
-
 
62
  Scenario: Search by keyword and browse by alphabet when several multilang entries can be found
-
 
63
    When I add a glossary entry with the following data:
-
 
64
      | Concept    | <span lang="de" class="multilang">Concombre</span><span lang="en" class="multilang">Cucumber</span>            |
-
 
65
      | Definition | <span lang="fr" class="multilang">Doux concombre</span><span lang="en" class="multilang">Sweet cucumber alternate entry</span> |
-
 
66
    And I set the field "hook" to "cucumber"
-
 
67
    And I press "Search"
-
 
68
    Then I should see "Sweet cucumber"
-
 
69
    And I should see "Sweet cucumber alternate entry"
-
 
70
    And I should see "Search: cucumber"
44
 
71
 
45
  @javascript
72
  @javascript
46
  Scenario: Browse by category
73
  Scenario: Browse by category
47
    When I select "Browse by category" from the "Browse the glossary using this index" singleselect
74
    When I select "Browse by category" from the "Browse the glossary using this index" singleselect
48
    And I set the field "Categories" to "The ones I like"
75
    And I set the field "Categories" to "The ones I like"