[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  @core @core_block
   2  Feature: Add blocks
   3    In order to add more functionality to pages
   4    As a teacher
   5    I need to add blocks to pages
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email |
  10        | student1 | Student | 1 | student1@example.com |
  11        | student2 | Student | 2 | student2@example.com |
  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 "admin"
  20      And I am on site homepage
  21      And I follow "Course 1"
  22      And I turn editing mode on
  23      When I add the "Blog menu" block
  24      Then I should see "View my entries about this course"
  25  
  26    @javascript
  27    Scenario: Add a block to a course with Javascript enabled
  28  
  29    Scenario: Add a block to a course with Javascript disabled


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1