[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

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

   1  @core @core_block
   2  Feature: Add and configure blocks throughout the site
   3    In order to maintain some patterns across all the site
   4    As a manager
   5    I need to set and configure blocks throughout the site
   6  
   7    Scenario: Add and configure a block throughtout the site
   8      Given the following "courses" exist:
   9        | fullname | shortname | category |
  10        | Course 1 | C1 | 0 |
  11      And the following "users" exist:
  12        | username | firstname | lastname | email |
  13        | manager1 | Manager | 1 | [email protected] |
  14      And the following "system role assigns" exist:
  15        | user | course | role |
  16        | manager1 | Acceptance test site | manager |
  17      And I log in as "manager1"
  18      And I follow "Turn editing on"
  19      And I add the "Comments" block
  20      And I configure the "Comments" block
  21      And I set the following fields to these values:
  22        | Page contexts | Display throughout the entire site |
  23      And I press "Save changes"
  24      When I follow "Course 1"
  25      Then I should see "Comments" in the "Comments" "block"
  26      And I should see "Save comment" in the "Comments" "block"
  27      And I am on homepage
  28      And I configure the "Comments" block
  29      And I set the following fields to these values:
  30        | Default weight | -10 (first) |
  31      And I press "Save changes"
  32      And I follow "Course 1"
  33      # The first block matching the pattern should be top-left block
  34      And I should see "Comments" in the "//*[@id='region-pre' or @id='block-region-side-pre']/descendant::div[contains(concat(' ', normalize-space(@class), ' '), ' block ')]" "xpath_element"


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