[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/course/tests/behat/ -> move_activities.feature (source)

   1  @core @core_course
   2  Feature: Activities can be moved between sections
   3    In order to rearrange my course contents
   4    As a teacher
   5    I need to move activities between sections
   6  
   7    Background:
   8      Given the following "users" exist:
   9        | username | firstname | lastname | email |
  10        | teacher1 | Teacher | 1 | teacher1@example.com |
  11      And the following "courses" exist:
  12        | fullname | shortname | format | coursedisplay | numsections |
  13        | Course 1 | C1 | topics | 0 | 5 |
  14      And the following "course enrolments" exist:
  15        | user | course | role |
  16        | teacher1 | C1 | editingteacher |
  17      And I log in as "teacher1"
  18      And I follow "Course 1"
  19      And I turn editing mode on
  20      And I follow "Delete Recent activity block"
  21      And I press "Yes"
  22      And I follow "Configure Navigation block"
  23      And I set the following fields to these values:
  24        | Visible | Yes |
  25      And I press "Save changes"
  26      And I add a "Forum" to section "1" and I fill the form with:
  27        | Forum name | Test forum name |
  28        | Description | Test forum description |
  29  
  30    Scenario: Move activities in a single page course with Javascript disabled
  31      When I move "Test forum name" activity to section "2"
  32      Then I should see "Test forum name" in the "Topic 2" "section"
  33      And I should not see "Test forum name" in the "Topic 1" "section"
  34  
  35    Scenario: Move activities in the course home with Javascript disabled using paged mode
  36      Given I click on "Edit settings" "link" in the "Administration" "block"
  37      And I set the following fields to these values:
  38        | Course layout | Show one section per page |
  39      And I press "Save and display"
  40      When I move "Test forum name" activity to section "2"
  41      Then I should see "Test forum name" in the "Topic 2" "section"
  42      And I should not see "Test forum name" in the "Topic 1" "section"
  43  
  44    Scenario: Move activities in a course section with Javascript disabled using paged mode
  45      Given I click on "Edit settings" "link" in the "Administration" "block"
  46      And I set the following fields to these values:
  47        | Course layout | Show one section per page |
  48      And I press "Save and display"
  49      And I add a "Forum" to section "1" and I fill the form with:
  50        | Forum name | Second forum name |
  51        | Description | Second forum description |
  52      And I follow "Topic 1"
  53      When I move "Second forum name" activity to section "1"
  54      Then "Second forum name" "link" should appear before "Test forum name" "link"


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