1 |
efrain |
1 |
@javascript @theme_classic
|
|
|
2 |
Feature: My courses page block layout in Classic theme
|
|
|
3 |
In order to have a clear and consistent view on the my courses page
|
|
|
4 |
As a student
|
|
|
5 |
I need to see the blocks in the expected placement
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| student1 | Student | 1 | student@example.com |
|
|
|
11 |
And I log in as "admin"
|
|
|
12 |
And I am on site homepage
|
|
|
13 |
And I turn editing mode on
|
|
|
14 |
And I add the "Text" block
|
|
|
15 |
And I configure the "(new text block)" block
|
|
|
16 |
And I set the following fields to these values:
|
|
|
17 |
| Page contexts | Display throughout the entire site |
|
|
|
18 |
| Text block title | Text on all pages |
|
|
|
19 |
| Content | This is visible on all pages |
|
|
|
20 |
| Default region | Right |
|
|
|
21 |
And I press "Save changes"
|
|
|
22 |
|
|
|
23 |
Scenario: Student can see relevant blocks with correct placement on my courses page
|
|
|
24 |
When I log in as "student1"
|
|
|
25 |
And I am on the "My courses" page
|
|
|
26 |
Then "Course overview" "text" should exist in the "region-main" "region"
|
|
|
27 |
And "This is visible on all pages" "text" should exist in the ".columnright" "css_element"
|