X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/user/tests/behat
home
/
cbholdings
/
pasukulu
/
user
/
tests
/
behat
/
📁
..
📄
add_blocks.feature
(858 B)
📄
addnewuser.feature
(725 B)
📄
behat_user.php
(5.76 KB)
📄
bulk_editenrolment.feature
(2.96 KB)
📄
bulk_message.feature
(1.49 KB)
📄
contact_site_support.feature
(5.54 KB)
📄
custom_profile_fields.feature
(13.99 KB)
📄
custom_profile_fields_manual.feature
(1.83 KB)
📄
delete_users.feature
(4.62 KB)
📄
edit_profile_notification.feature
(2.03 KB)
📄
edit_user_enrolment.feature
(6.8 KB)
📄
edit_user_roles.feature
(1.62 KB)
📄
edituserpassword.feature
(1.99 KB)
📄
enrol_cohort_list.feature
(2.2 KB)
📄
filter_idnumber.feature
(3.18 KB)
📄
filter_participants.feature
(47.21 KB)
📄
filter_participants_showall.feature
(6.73 KB)
📄
filter_timecreated.feature
(2.04 KB)
📄
filter_trim.feature
(1.54 KB)
📄
full_name_display.feature
(4.61 KB)
📄
hidden_user_fields.feature
(2.09 KB)
📄
input-purpose.feature
(1.82 KB)
📄
name_fields.feature
(2.91 KB)
📄
participants_in_group_modes.feature
(9.9 KB)
📄
reset_page.feature
(908 B)
📄
set_default_homepage.feature
(3.16 KB)
📄
set_email_display.feature
(4.08 KB)
📄
siteadmin_user_breadcrumbs.feature
(1.59 KB)
📄
table_column_visibility.feature
(2.44 KB)
📄
table_sorting.feature
(3.01 KB)
📄
user_grade_navigation.feature
(4.54 KB)
📄
user_private_files.feature
(996 B)
📄
view_full_profile.feature
(7.36 KB)
📄
view_participants.feature
(15.08 KB)
📄
view_participants_groups.feature
(3.37 KB)
📄
view_preferences_page.feature
(3.29 KB)
Editing: full_name_display.feature
@core @core_user Feature: Users' names are displayed across the site according to the user policy settings In order to control the way students and teachers see users' names As a teacher or admin I need to be able to configure the name display formats 'fullnamedisplay' and 'alternativefullnameformat' Background: Given the following "users" exist: | username | firstname | lastname | email | middlename | alternatename | firstnamephonetic | lastnamephonetic | | user1 | Grainne | Beauchamp | one@example.com | Ann | Jill | Gronya | Beecham | | user2 | Niamh | Cholmondely | two@example.com | Jane | Nina | Nee | Chumlee | | user3 | Siobhan | Desforges | three@example.com | Sarah | Sev | Shevon | De-forjay | | teacher1 | Teacher | 1 | teacher1@example.com | | | | | And the following "courses" exist: | fullname | shortname | format | | Course 1 | C1 | topics | And the following "course enrolments" exist: | user | course | role | | teacher1 | C1 | editingteacher | | user1 | C1 | student | | user2 | C1 | student | And the following config values are set as admin: | fullnamedisplay | firstnamephonetic,lastnamephonetic | | alternativefullnameformat | middlename, alternatename, firstname, lastname | Scenario: As a student, 'fullnamedisplay' should be used in the participants list and when viewing my own course profile Given I log in as "user1" And I am on "Course 1" course homepage When I navigate to course participants And I click on "Gronya,Beecham" "link" in the "Gronya,Beecham" "table_row" Then I should see "Gronya,Beecham" in the "region-main" "region" And I log out Scenario: As a student, 'fullnamedisplay' should be used in the participants list and when viewing another user's course profile Given I log in as "user2" And I am on "Course 1" course homepage When I navigate to course participants And I click on "Gronya,Beecham" "link" in the "Gronya,Beecham" "table_row" Then I should see "Gronya,Beecham" in the "region-main" "region" And I log out Scenario: As a teacher, 'alternativefullnameformat' should be used in the participants list but 'fullnamedisplay' used on the course profile Given I log in as "teacher1" And I am on "Course 1" course homepage When I navigate to course participants Then I should see "Ann, Jill, Grainne, Beauchamp" in the "Ann, Jill, Grainne, Beauchamp" "table_row" And I click on "Ann, Jill, Grainne, Beauchamp" "link" in the "Ann, Jill, Grainne, Beauchamp" "table_row" And I should see "Gronya,Beecham" in the "region-main" "region" And I log out Scenario: As an authenticated user, 'fullnamedisplay' should be used in the navigation and when viewing my profile Given I log in as "user1" When I follow "Profile" in the user menu Then I should see "Gronya,Beecham" in the ".page-context-header" "css_element" And I should see "You are logged in as Gronya,Beecham" in the "page-footer" "region" And I log out Scenario: As an admin, 'fullnamedisplay' should be used when using the 'log in as' function Given I log in as "admin" When I navigate to "Users > Accounts > Browse list of users" in site administration And I follow "Jane, Nina, Niamh, Cholmondely" And I follow "Log in as" Then I should see "You are logged in as Nee,Chumlee" in the ".usermenu" "css_element" And I should see "You are logged in as Jane, Nina, Niamh, Cholmondely" in the "region-main" "region" And I should see "You are logged in as Nee,Chumlee" in the "page-footer" "region" And I log out Scenario: As an admin, 'fullnamedisplay' should be used when viewing another user's site profile Given I log in as "admin" When I navigate to "Users > Accounts > Browse list of users" in site administration And I follow "Ann, Jill, Grainne, Beauchamp" Then I should see "Gronya,Beecham" in the ".page-header-headings" "css_element" And I log out @javascript Scenario: As a teacher, the 'alternativefullnameformat' should be used when searching for and enrolling a user Given I log in as "teacher1" And I am on "Course 1" course homepage When I navigate to course participants And I press "Enrol users" And I click on "Select users" "field" And I type "three@example.com" Then I should see "Sarah, Sev, Siobhan, Desforges"
Upload File
Create Folder