__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@core @core_group
Feature: Custom profile fields in groups
In order to organize participants into groups
As a teacher
I need to be able to view and search on custom profile fields
Background:
Given the following "custom profile fields" exist:
| datatype | shortname | name | param2 |
| text | species | Species | 255 |
And the following "users" exist:
| username | firstname | lastname | profile_field_species | email |
| user1 | Robin | Hood | fox | email1@example.org |
| user2 | Little | John | bear | email2@example.org |
And the following "courses" exist:
| shortname | fullname |
| C1 | Course 1 |
And the following "course enrolments" exist:
| user | course | role |
| user1 | C1 | manager |
| user2 | C1 | manager |
And the following "groups" exist:
| name | course | idnumber |
| Canines | C1 | G1 |
And the following "group members" exist:
| user | group |
| user1 | G1 |
Given the following config values are set as admin:
| showuseridentity | username,profile_field_species |
@javascript
Scenario: Check the custom profile fields show up and can be searched on
When I am logged in as "admin"
And I am on the "Course 1" "groups" page
# Check the Overview page.
And I set the field "Participants tertiary navigation" to "Overview"
And "Robin Hood (user1, fox)" "text" should exist in the "Canines" "table_row"
And "Little John (user2, bear)" "text" should exist in the "No group" "table_row"
# Check the groups page.
And I set the field "Participants tertiary navigation" to "Groups"
And I set the field "groups" to "Canines"
And I should see "Robin Hood (user1, fox)"
And I should not see "Little John (user2, bear)"
# Check the members page.
And I press "Add/remove users"
And I should see "Robin Hood (user1, fox)"
And I should see "Little John (user2, bear)"
And I set the field "addselect" to "Little John (user2, bear)"
And I press "Add"
And I should see "Robin Hood (user1, fox)"
And I should see "Little John (user2, bear)"
And I set the field "Search" in the "#existingcell" "css_element" to "fox"
And I wait "1" seconds
And I should see "Robin Hood (user1, fox)"
And I should not see "Little John (user2, bear)"
And I set the field "Search" in the "#existingcell" "css_element" to ""
And I wait "1" seconds
And I set the field "removeselect" to "Little John (user2, bear)"
And I press "Remove"
And I set the field "removeselect" to "Robin Hood (user1, fox)"
And I press "Remove"
And I should see "Robin Hood (user1, fox)"
And I should see "Little John (user2, bear)"
And I set the field "Search" in the "#potentialcell" "css_element" to "bear"
And I wait "1" seconds
And I should see "Little John (user2, bear)"
And I should not see "Robin Hood (user1, fox)"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| auto_creation.feature | File | 8.52 KB | 0777 |
|
| backup_restore_groups.feature | File | 2.83 KB | 0777 |
|
| behat_groups.php | File | 3.66 KB | 0777 |
|
| bulk_messaging.feature | File | 2.45 KB | 0777 |
|
| create_groups.feature | File | 6.97 KB | 0777 |
|
| custom_fields.feature | File | 3 KB | 0777 |
|
| delete_groups.feature | File | 2.88 KB | 0777 |
|
| group_customfields.feature | File | 3.35 KB | 0777 |
|
| group_description_picture.feature | File | 5.84 KB | 0777 |
|
| groups_import.feature | File | 7.75 KB | 0777 |
|
| id_uniqueness.feature | File | 2.36 KB | 0777 |
|
| overview.feature | File | 9.26 KB | 0777 |
|
| private_groups.feature | File | 11.63 KB | 0777 |
|
| role_visibility.feature | File | 2.32 KB | 0777 |
|
| update_groups.feature | File | 7.15 KB | 0777 |
|