403Webshell
Server IP : 172.67.187.206  /  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/mod/forum/tests/behat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Inetpub/www/myschool/triamudom/tuprblearn/mod/forum/tests/behat/timed_discussions.feature
@mod @mod_forum
Feature: Users can choose to set start and end time for display of their discussions
  In order to temporarly hide discussions to students
  As a teacher
  I need to set a discussion time start and time end

  Scenario: Student should not see the tooltip or the discussion
    Given the following "users" exist:
      | username | firstname | lastname | email |
      | student1 | Student | 1 | [email protected] |
    And the following "courses" exist:
      | fullname | shortname | category |
      | Course 1 | C1 | 0 |
    And the following "course enrolments" exist:
      | user | course | role |
      | student1 | C1 | student |
    And I log in as "admin"
    And the following config values are set as admin:
      | forum_enabletimedposts | 1 |
    And I am on "Course 1" course homepage with editing mode on
    And I add a "Forum" to section "1" and I fill the form with:
      | Forum name | Test forum name |
      | Description | Test forum description |
    And I add a new discussion to "Test forum name" forum with:
      | Subject | Discussion 1 |
      | Message | Discussion contents 1, first message |
    And I add a new discussion to "Test forum name" forum with:
      | Subject          | Discussion 2 timed not visible       |
      | Message          | Discussion contents 2, first message |
      | timeend[enabled] | 1 |
      | timeend[year]    | 2014 |
    And I add a new discussion to "Test forum name" forum with:
      | Subject            | Discussion 3 timed visible now       |
      | Message            | Discussion contents 3, first message |
      | timestart[enabled] | 1 |
    And I am on "Course 1" course homepage
    And I follow "Test forum name"
    And I should see "Discussion 2 timed"
    And I should see "Discussion 3 timed"
    And "[data-region=timed-label]" "css_element" should exist
    And I log out
    And I log in as "student1"
    When I am on "Course 1" course homepage
    And I follow "Test forum name"
    Then I should see "Discussion 1"
    And I should not see "Discussion 2 timed"
    And "[data-region=timed-label]" "css_element" should not exist
    And I should see "Discussion 3 timed"

Youez - 2016 - github.com/yon3zu
LinuXploit