1 |
efrain |
1 |
@mod @mod_page
|
|
|
2 |
Feature: Configure page appearance
|
|
|
3 |
In order to change the appearance of the page resource
|
|
|
4 |
As an admin
|
|
|
5 |
I need to configure the page appearance settings
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "courses" exist:
|
|
|
9 |
| shortname | fullname |
|
|
|
10 |
| C1 | Course 1 |
|
|
|
11 |
And the following "activities" exist:
|
|
|
12 |
| activity | name | intro | course | idnumber |
|
|
|
13 |
| page | PageName1 | PageDesc1 | C1 | PAGE1 |
|
|
|
14 |
|
|
|
15 |
@javascript
|
|
|
16 |
Scenario Outline: Hide and display page features
|
|
|
17 |
Given I am on the "PageName1" "page activity editing" page logged in as admin
|
|
|
18 |
And I expand all fieldsets
|
|
|
19 |
And I set the field "<feature>" to "<value>"
|
|
|
20 |
And I press "Save and display"
|
|
|
21 |
Then I <shouldornot> see "<lookfor>" in the "region-main" "region"
|
|
|
22 |
|
|
|
23 |
Examples:
|
|
|
24 |
| feature | lookfor | value | shouldornot |
|
|
|
25 |
| Display page description | PageDesc1 | 1 | should |
|
|
|
26 |
| Display page description | PageDesc1 | 0 | should not |
|
|
|
27 |
| Display last modified date | Last modified: | 1 | should |
|
|
|
28 |
| Display last modified date | Last modified: | 0 | should not |
|