[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/my/tests/behat/ -> add_blocks.feature (source)

   1  @core @core_my
   2  Feature: Add blocks to my home page
   3    In order to add more functionality to my home page
   4    As a user
   5    I need to add blocks to my home page
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email |
  10        | student1 | Student | 1 | [email protected] |
  11        | student2 | Student | 2 | [email protected] |
  12      And the following "courses" exist:
  13        | fullname | shortname | format |
  14        | Course 1 | C1 | topics |
  15      And the following "course enrolments" exist:
  16        | user | course | role |
  17        | student1 | C1 | student |
  18        | student2 | C1 | student |
  19      And I log in as "student1"
  20      And I click on "My home" "link" in the "Navigation" "block"
  21  
  22    Scenario: Add blocks to page
  23      When I press "Customise this page"
  24      And I add the "Latest news" block
  25      Then I should see "Latest news" in the "Latest news" "block"
  26      And I should see "My latest badges" in the "My latest badges" "block"
  27      And I should see "Calendar" in the "Calendar" "block"
  28      And I should see "Upcoming events" in the "Upcoming events" "block"


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