[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/blocks/glossary_random/tests/behat/ -> glossary_random_frontpage.feature (source)

   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 click on "Turn editing on" "link" in the "Administration" "block"
  13    And I add the "Random glossary entry" block
  14    And I configure the "block_glossary_random" block
  15    And I set the following fields to these values:
  16      | Title                           | Tip of the day  |
  17      | Take entries from this glossary | Tips and Tricks |
  18    And I press "Save changes"
  19    And I click on "Add a new entry" "link" in the "Tip of the day" "block"
  20    And I set the following fields to these values:
  21      | Concept    | Never come late               |
  22      | Definition | Come in time for your classes |
  23    And I press "Save changes"
  24    When I log out
  25    Then I should see "Never come late" in the "Tip of the day" "block"
  26    And I should see "Come in time for your classes" in the "Tip of the day" "block"


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1