Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@block @block_glossary_random
2
Feature: Random glossary entry block can be added to the frontpage
3
  In order to show the entries from glossary on the frontpage
4
  As a teacher
5
  I can add the random glossary entry to the frontpage
6
 
7
  Scenario: Admin can add random glossary block to the frontpage
8
    Given the following "activities" exist:
9
      | activity   | name             | intro                          | course               | idnumber  |
10
      | glossary   | Tips and Tricks  | Frontpage glossary description | Acceptance test site | glossary0 |
11
    And I log in as "admin"
12
    And I am on site homepage
13
    And I turn editing mode on
14
    And I add the "Random glossary entry" block
15
    And I configure the "block_glossary_random" block
16
    And I set the following fields to these values:
17
      | Title                           | Tip of the day  |
18
      | Take entries from this glossary | Tips and Tricks |
19
    And I press "Save changes"
20
    And I click on "Add a new entry" "link" in the "Tip of the day" "block"
21
    And I set the following fields to these values:
22
      | Concept    | Never come late               |
23
      | Definition | Come in time for your classes |
24
    And I press "Save changes"
25
    When I log out
26
    Then I should see "Never come late" in the "Tip of the day" "block"
27
    And I should see "Come in time for your classes" in the "Tip of the day" "block"