mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 03:16:42 +02:00
MDL-46524: Auto-create groups from existing group or grouping membership
This commit is contained in:
parent
40f0ad21a3
commit
e4ebf7ef0f
6 changed files with 165 additions and 11 deletions
|
@ -108,4 +108,34 @@ Feature: Automatic creation of groups
|
|||
And I set the field "Ignore users in groups" to "1"
|
||||
And I press "Submit"
|
||||
And the "groups" select box should contain "Group A (3)"
|
||||
And the "groups" select box should contain "Group B (3)"
|
||||
And the "groups" select box should contain "Group B (3)"
|
||||
|
||||
@javascript
|
||||
Scenario: Split users into groups based on existing groups or groupings
|
||||
Given I set the following fields to these values:
|
||||
| Naming scheme | Group @ |
|
||||
| Auto create based on | Number of groups |
|
||||
| Group/member count | 2 |
|
||||
| Grouping of auto-created groups | No grouping |
|
||||
And I press "Submit"
|
||||
And I press "Auto-create groups"
|
||||
And I set the following fields to these values:
|
||||
| Naming scheme | Test @ |
|
||||
| Auto create based on | Number of groups |
|
||||
| Group/member count | 2 |
|
||||
| groupid | Group A |
|
||||
| Grouping of auto-created groups | New grouping |
|
||||
| Grouping name | Sub Grouping |
|
||||
And I press "Submit"
|
||||
And the "groups" select box should contain "Test A (3)"
|
||||
And the "groups" select box should contain "Test B (2)"
|
||||
And I press "Auto-create groups"
|
||||
And I set the following fields to these values:
|
||||
| Naming scheme | Test # |
|
||||
| Auto create based on | Number of groups |
|
||||
| Group/member count | 2 |
|
||||
| Select members from grouping | Sub Grouping |
|
||||
| Grouping of auto-created groups | No grouping |
|
||||
And I press "Submit"
|
||||
And the "groups" select box should contain "Test 1 (3)"
|
||||
And the "groups" select box should contain "Test 2 (2)"
|
Loading…
Add table
Add a link
Reference in a new issue