moodle/blocks/myprofile/tests/behat/block_myprofile_course.feature
Simey Lameze fdeeaff954 MDL-58265 core_test: replace I turn editing on steps
Also remove few more unnecessary steps that redirects behat to
site home page to actually get to the course.

Part of MDL-55611 epic.
2017-04-03 11:37:07 +08:00

21 lines
954 B
Gherkin

@block @block_myprofile
Feature: The logged in user block allows users to view their profile information in a course
In order to enable the logged in user block in a course
As a teacher
I can add the logged in user block to a course and view my information
Scenario: View the logged in user block by a user in a course
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 |
When I log in as "teacher1"
And I am on "Course 1" course homepage with editing mode on
And I add the "Logged in user" block
Then I should see "Teacher One" in the "Logged in user" "block"