Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@mod @mod_forum
2
Feature: A teacher can move discussions between forums
3
  In order to move a discussion
4
  As a teacher
5
  I need to use the move discussion selector
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
      | Course 1 | C1         | 0         |
15
    And the following "course enrolments" exist:
16
      | user | course | role |
17
      | teacher1 | C1 | editingteacher |
18
      | student1 | C1 | student |
19
 
20
  Scenario: A teacher can move discussions
21
    Given the following "activities" exist:
22
      | activity | name         | course | idnumber | groupmode |
23
      | forum    | Test forum 1 | C1     | forum1   | 0         |
24
      | forum    | Test forum 2 | C1     | forum2   | 0         |
25
    And the following "mod_forum > discussions" exist:
26
      | user     | forum  | name         | message           |
27
      | student1 | forum1 | Discussion 1 | Test post message |
28
    And I am on the "Test forum 1" "forum activity" page logged in as teacher1
29
    And I follow "Discussion 1"
30
    When I set the field "jump" to "Test forum 2"
31
    And I press "Move"
32
    Then I should see "This discussion has been moved to 'Test forum 2'."
33
    And I press "Move"
34
    And I should see "Discussion 1"