[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  @core @core_course @_cross_browser
   2  Feature: Force group mode in a course
   3    In order to use the same group mode all over the course
   4    As a teacher
   5    I need to force the group mode of all course's activities
   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 | category |
  13        | Course 1 | C1 | 0 |
  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 add a "Chat" to section "1" and I fill the form with:
  21        | Name of this chat room | Chat room |
  22        | Description | Chat description |
  23      And I click on "Edit settings" "link" in the "Administration" "block"
  24  
  25    @javascript
  26    Scenario: Forced group mode using separate groups
  27      Given I set the following fields to these values:
  28        | Group mode | Separate groups |
  29        | Force group mode | Yes |
  30      When I press "Save and display"
  31      Then "//a/child::img[contains(@alt, 'Separate groups (forced mode)')]" "xpath_element" should not exist
  32      And "//img[contains(@alt, 'Separate groups (forced mode)')]" "xpath_element" should not exist
  33  
  34    @javascript
  35    Scenario: Forced group mode using visible groups
  36      Given I set the following fields to these values:
  37        | Group mode | Visible groups |
  38        | Force group mode | Yes |
  39      And I press "Save and display"
  40      Then "//a/child::img[contains(@alt, 'Visible groups (forced mode)')]" "xpath_element" should not exist
  41      And "//img[contains(@alt, 'Visible groups (forced mode)')]" "xpath_element" should not exist
  42  
  43    @javascript
  44    Scenario: Forced group mode without groups
  45      Given I set the following fields to these values:
  46        | Group mode | No groups |
  47        | Force group mode | Yes |
  48      And I press "Save and display"
  49      Then "//a/child::img[contains(@alt, 'No groups (forced mode)')]" "xpath_element" should not exist
  50      And "//img[contains(@alt, 'No groups (forced mode)')]" "xpath_element" should not exist
  51  


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