AutorÃa | Ultima modificación | Ver Log |
@core @core_userFeature: Hidden user fields behaviorIn order to hide private information of usersAs an adminI can set Hide user fields settingBackground:Given the following "users" exist:| username | firstname | lastname | email | description | city || user | Profile | User | user@example.com | This is me | Donostia || student | Student | User | student@example.com | | || teacher | Teacher | User | teacher@example.com | | |And the following "courses" exist:| fullname | shortname | format || Course 1 | C1 | topics |And the following "course enrolments" exist:| user | course | role || user | C1 | student || student | C1 | student || teacher | C1 | editingteacher |And the following config values are set as admin:| hiddenuserfields | description,email |Scenario Outline: Hidden user fields on course context profile based on role permissionGiven I log in as "<user>"And I am on "Course 1" course homepageAnd I navigate to course participantsAnd I should see "Profile User"When I click on "Profile User" "link"Then I <expected> "This is me"And I <expected> "user@example.com"And I should see "Donostia"Examples:| user | expected || student | should not see || teacher | should see || admin | should see |Scenario Outline: Hidden user fields on system context profile based on role permissionGiven I log in as "<user>"And I am on "Course 1" course homepageAnd I navigate to course participantsAnd I should see "Profile User"When I click on "Profile User" "link"And I click on "Full profile" "link"Then I <expected> "This is me"And I <expected> "user@example.com"And I should see "Donostia"Examples:| user | expected || student | should not see || teacher | should not see || admin | should see |