[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/mod/forum/tests/behat/ -> split_forum_discussion.feature (source)

   1  @mod @mod_forum
   2  Feature: Forum discussions can be split
   3    In order to manage forum discussions in my course
   4    As a Teacher
   5    I need to be able to split threads to keep them on topic.
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email |
  10        | teacher1 | Teacher | 1 | teacher1@example.com |
  11        | student1 | Student | 1 | student1@example.com |
  12      And the following "courses" exist:
  13        | fullname | shortname | category |
  14        | Science 101 | C1 | 0 |
  15      And the following "course enrolments" exist:
  16        | user | course | role |
  17        | teacher1 | C1 | editingteacher |
  18        | student1 | C1 | student |
  19      And I log in as "teacher1"
  20      And I follow "Science 101"
  21      And I turn editing mode on
  22      And I add a "Forum" to section "1" and I fill the form with:
  23        | Forum name | Study discussions |
  24        | Forum type | Standard forum for general use |
  25        | Description | Forum to discuss your coursework. |
  26      And I add a new discussion to "Study discussions" forum with:
  27        | Subject | Photosynethis discussion |
  28        | Message | Lets discuss our learning about Photosynethis this week in this thread. |
  29      And I log out
  30      And I log in as "student1"
  31      And I follow "Science 101"
  32      And I reply "Photosynethis discussion" post from "Study discussions" forum with:
  33        | Message | Can anyone tell me which number is the mass number in the periodic table? |
  34      And I log out
  35  
  36    Scenario: Split a forum discussion
  37      Given I log in as "teacher1"
  38      And I follow "Science 101"
  39      And I follow "Study discussions"
  40      And I follow "Photosynethis discussion"
  41      When I follow "Split"
  42      And  I set the following fields to these values:
  43          | Discussion name | Mass number in periodic table |
  44      And I press "Split"
  45      Then I should see "Mass number in periodic table"
  46      And I follow "Study discussions"
  47      And I should see "Teacher 1" in the "Photosynethis" "table_row"
  48      And I should see "Student 1" in the "Mass number in periodic table" "table_row"


Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1