__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
@block @block_myprofile
Feature: The logged in user block allows users to view their profile information in an activity
In order to enable the logged in user block in an activity
As a teacher
I can add the logged in user block to an activity and view my information
Scenario: View the logged in user block by a user in an activity
Given the following "users" exist:
| username | firstname | lastname | email | idnumber |
| teacher1 | Teacher | One | teacher1@example.com | T1 |
And the following "courses" exist:
| fullname | shortname | category |
| Course 1 | C1 | 0 |
And the following "course enrolments" exist:
| user | course | role |
| teacher1 | C1 | editingteacher |
And the following "activities" exist:
| activity | course | idnumber | name | intro |
| page | C1 | page1 | Test page name | Test page description |
And the following "blocks" exist:
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
| myprofile | Activity module | page1 | mod-page-* | side-pre |
When I am on the "Test page name" "page activity" page logged in as teacher1
Then I should see "Teacher One" in the "Logged in user" "block"
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| block_myprofile.feature | File | 11.71 KB | 0777 |
|
| block_myprofile_activity.feature | File | 1.26 KB | 0777 |
|
| block_myprofile_course.feature | File | 954 B | 0777 |
|
| block_myprofile_dashboard.feature | File | 691 B | 0777 |
|
| block_myprofile_frontpage.feature | File | 1.02 KB | 0777 |
|