1 |
efrain |
1 |
@mod @mod_imscp
|
|
|
2 |
Feature: Display the IMS content package description in the IMSCP and optionally in the course
|
|
|
3 |
In order to display the the IMS content package description description in the course
|
|
|
4 |
As a teacher
|
|
|
5 |
I need to enable the 'Display description on course page' setting.
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| teacher1 | Teacher | 1 | teacher1@example.com |
|
|
|
11 |
And the following "courses" exist:
|
|
|
12 |
| fullname | shortname | format |
|
|
|
13 |
| Course 1 | C1 | topics |
|
|
|
14 |
And the following "course enrolments" exist:
|
|
|
15 |
| user | course | role |
|
|
|
16 |
| teacher1 | C1 | editingteacher |
|
|
|
17 |
And the following "activities" exist:
|
|
|
18 |
| activity | course | name | intro | packagefilepath |
|
|
|
19 |
| imscp | C1 | Test IMS content package | Test IMS content package description | mod/imscp/tests/packages/singelscobasic.zip |
|
|
|
20 |
|
|
|
21 |
Scenario: Description is displayed in the IMS content package
|
|
|
22 |
When I am on the "Test IMS content package" "imscp activity" page logged in as teacher1
|
|
|
23 |
Then I should see "Test IMS content package description"
|
|
|
24 |
|
|
|
25 |
Scenario: Show IMS description in the course homepage
|
|
|
26 |
When I am on the "Test IMS content package" "imscp activity editing" page logged in as teacher1
|
|
|
27 |
And the following fields match these values:
|
|
|
28 |
| Display description on course page | |
|
|
|
29 |
And I set the following fields to these values:
|
|
|
30 |
| Display description on course page | 1 |
|
|
|
31 |
And I press "Save and return to course"
|
|
|
32 |
Then I should see "Test IMS content package description"
|
|
|
33 |
|
|
|
34 |
Scenario: Hide IMS description in the course homepage
|
|
|
35 |
When I am on the "Test IMS content package" "imscp activity editing" page logged in as teacher1
|
|
|
36 |
And the following fields match these values:
|
|
|
37 |
| Display description on course page | |
|
|
|
38 |
And I press "Save and return to course"
|
|
|
39 |
Then I should not see "Test IMS content package description"
|