[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  @core @core_block
   2  Feature: Show hidden blocks in a docked block region when editing
   3    In order to edit blocks in a hidden region
   4    As a teacher
   5    I need to be able to see the blocks when editing is on
   6  
   7    Background:
   8      Given the following "courses" exist:
   9        | fullname | shortname | format |
  10        | Course 1 | C1 | topics |
  11      And the following "course enrolments" exist:
  12        | user | course | role |
  13        | admin | C1 | editingteacher |
  14      And I log in as "admin"
  15      And I follow "Course 1"
  16      And I turn editing mode on
  17      # Hide all the blocks in the non-default region
  18      And I configure the "Search forums" block
  19      And I set the following fields to these values:
  20        | Visible | No |
  21      And I click on "Save changes" "button"
  22      And I configure the "Latest announcements" block
  23      And I set the following fields to these values:
  24        | Visible | No |
  25      And I click on "Save changes" "button"
  26      And I configure the "Upcoming events" block
  27      And I set the following fields to these values:
  28        | Visible | No |
  29      And I click on "Save changes" "button"
  30      And I configure the "Recent activity" block
  31      And I set the following fields to these values:
  32        | Visible | No |
  33      When I click on "Save changes" "button"
  34      # Editing is on so they should be visible
  35      Then I should see "Search forums"
  36      And I should see "Latest announcements"
  37      And I should see "Upcoming events"
  38      And I should see "Recent activity"
  39      And I turn editing mode off
  40      # Editing is off, so they should no longer be visible
  41      And I should not see "Search forums"
  42      And I should not see "Latest announcements"
  43      And I should not see "Upcoming events"
  44      And I should not see "Recent activity"
  45  
  46    @javascript
  47    Scenario: Check that a region with only hidden blocks is not docked in editing mode (javascript enabled)
  48  
  49    Scenario: Check that a region with only hidden blocks is not docked in editing mode (javascript disabled)


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