1 |
efrain |
1 |
@block @block_multiblock @javascript
|
|
|
2 |
Feature: Vertical tabbed layout (left)
|
|
|
3 |
In order to streamline course presentation
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to be able to focus content with a vertical tabbed layout
|
|
|
6 |
|
|
|
7 |
Scenario: Testing vertical tabbed layout (left)
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| teacher1 | Teacher | One | teacher@example.com |
|
|
|
11 |
When I log in as "teacher1"
|
|
|
12 |
And I enable editing mode whilst on the dashboard
|
|
|
13 |
# The usual 'And I add "Multiblock" block' step can fail in JS with lots of blocks present.
|
|
|
14 |
And I add the "Multiblock" block
|
|
|
15 |
And I configure the "Multiblock" block
|
|
|
16 |
And I expand all fieldsets
|
|
|
17 |
And I set the field "Multiblock presentation style" to "Vertical Tabs (Left)"
|
|
|
18 |
And I set the field "Region" to "content"
|
|
|
19 |
And I press "Save changes"
|
|
|
20 |
And I manage the contents of "Multiblock" block
|
|
|
21 |
And I expand all fieldsets
|
|
|
22 |
And I add the HTML block field
|
|
|
23 |
And I set the title of the HTML block to "First Item"
|
|
|
24 |
And I set the field "Content" to "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
|
|
|
25 |
And I press "Save and return to manage"
|
|
|
26 |
And I expand all fieldsets
|
|
|
27 |
And I add the HTML block field
|
|
|
28 |
And I set the title of the HTML block to "Second Item"
|
|
|
29 |
And I set the field "Content" to "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
|
|
|
30 |
And I press "Save and display"
|
|
|
31 |
Then I should see "First Item" in the ".block_multiblock" "css_element"
|
|
|
32 |
And I should see "Second Item" in the ".block_multiblock" "css_element"
|
|
|
33 |
And I should see "Lorem ipsum dolor sit" in the ".block_multiblock" "css_element"
|
|
|
34 |
And I should not see "Ut enim ad minim veniam" in the ".block_multiblock" "css_element"
|
|
|
35 |
And "Second Item" "link" should appear before "Lorem ipsum" "text"
|
|
|
36 |
And I click on "Second Item" "link"
|
|
|
37 |
And I should not see "Lorem ipsum dolor sit" in the ".block_multiblock" "css_element"
|
|
|
38 |
And I should see "Ut enim ad minim veniam" in the ".block_multiblock" "css_element"
|