[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  @core @core_course
   2  Feature: Courses can be searched for and moved in bulk.
   3    In order to manage a large number of courses
   4    As a Moodle Administrator
   5    I need to be able to search courses in bulk and move them around
   6  
   7    Background:
   8       Given the following "categories" exist:
   9        | name | category | idnumber |
  10        | Science | 0 | SCI |
  11        | English | 0 | ENG |
  12        | Miscellaneous | 0 | MISC |
  13  
  14      And the following "courses" exist:
  15        | fullname | shortname | category |
  16        | Biology Y1 | BIO1 | MISC |
  17        | Biology Y2 | BIO2 | MISC |
  18        | English Y1 | ENG1 | ENG |
  19        | English Y2 | ENG2 | MISC |
  20  
  21    Scenario: Search courses finds correct results
  22      Given I log in as "admin"
  23      And I go to the courses management page
  24      When I set the field "Search courses:" to "Biology"
  25      And I press "Go"
  26      Then I should see "Biology Y1"
  27      And I should see "Biology Y2"
  28      And I should not see "English Y1"
  29      And I should not see "English Y2"
  30  
  31    @javascript
  32    Scenario: Search courses and move results in bulk
  33      Given I log in as "admin"
  34      And I go to the courses management page
  35      And I set the field "Search courses:" to "Biology"
  36      And I press "Go"
  37      When I select course "Biology Y1" in the management interface
  38      And I select course "Biology Y2" in the management interface
  39      And I set the field "menumovecoursesto" to "Science"
  40      And I press "Move"
  41      Then I should see "Successfully moved 2 courses into Science"
  42      And I wait to be redirected
  43      And I click on category "Science" in the management interface
  44      And I should see "Biology Y1"
  45      And I should see "Biology Y2"


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