mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
0fe86bbdbb
asd.com is a valid domain, we should use reserved domain names for testing
27 lines
915 B
Gherkin
27 lines
915 B
Gherkin
@block @block_participants
|
|
Feature: People Block used on frontpage
|
|
In order to view participants in a site
|
|
As a admin
|
|
I can add the people block to the front page
|
|
|
|
Background:
|
|
Given the following "users" exist:
|
|
| username | firstname | lastname | email |
|
|
| student1 | Sam | Student | student1@example.com |
|
|
And I log in as "admin"
|
|
And I am on site homepage
|
|
And I navigate to "Turn editing on" node in "Front page settings"
|
|
And I add the "People" block
|
|
And I log out
|
|
|
|
Scenario: Admin can view site participants link
|
|
When I log in as "admin"
|
|
And I am on site homepage
|
|
Then "People" "block" should exist
|
|
And I should see "Participants" in the "People" "block"
|
|
|
|
Scenario: Student can not follow participants link on frontpage
|
|
When I log in as "student1"
|
|
And I am on site homepage
|
|
Then "People" "block" should not exist
|