Línea 3... |
Línea 3... |
3 |
In order to add/edit content
|
3 |
In order to add/edit content
|
4 |
As a user
|
4 |
As a user
|
5 |
I need to be able to access the edition options
|
5 |
I need to be able to access the edition options
|
Línea 6... |
Línea 6... |
6 |
|
6 |
|
7 |
Background:
|
- |
|
8 |
Given the following "blocks" exist:
|
- |
|
9 |
| blockname | contextlevel | reference | pagetypepattern | defaultregion |
|
- |
|
10 |
| private_files | System | 1 | my-index | side-post |
|
7 |
Background:
|
11 |
And I log in as "admin"
|
8 |
Given I log in as "admin"
|
12 |
And I am on site homepage
|
9 |
And I am on site homepage
|
13 |
And I turn editing mode on
|
10 |
And I turn editing mode on
|
14 |
And the following config values are set as admin:
|
11 |
And the following config values are set as admin:
|
15 |
| unaddableblocks | | theme_boost|
|
12 |
| unaddableblocks | | theme_boost|
|
Línea 23... |
Línea 20... |
23 |
Given I click on "Site pages" "list_item" in the "Navigation" "block"
|
20 |
Given I click on "Site pages" "list_item" in the "Navigation" "block"
|
24 |
When I click on "Content bank" "link"
|
21 |
When I click on "Content bank" "link"
|
25 |
Then the "[data-action=Add-content]" "css_element" should be disabled
|
22 |
Then the "[data-action=Add-content]" "css_element" should be disabled
|
Línea 26... |
Línea 23... |
26 |
|
23 |
|
27 |
Scenario: Users can see the Add button if there is content type available for creation
|
24 |
Scenario: Users can see the Add button if there is content type available for creation
|
28 |
Given I follow "Dashboard"
|
25 |
Given the following "user private file" exists:
|
29 |
And I follow "Manage private files..."
|
26 |
| user | admin |
|
30 |
And I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "Files" filemanager
|
- |
|
31 |
And I click on "Save changes" "button"
|
27 |
| filepath | h5p/tests/fixtures/filltheblanks.h5p |
|
32 |
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
28 |
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
33 |
And I click on "Content bank" "link" in the "Navigation" "block"
|
29 |
And I click on "Content bank" "link" in the "Navigation" "block"
|
34 |
And I click on "Upload" "link"
|
30 |
And I click on "Upload" "link"
|
35 |
And I click on "Choose a file..." "button"
|
31 |
And I click on "Choose a file..." "button"
|
Línea 42... |
Línea 38... |
42 |
And I click on "Exit" "link"
|
38 |
And I click on "Exit" "link"
|
43 |
Then I click on "[data-action=Add-content]" "css_element"
|
39 |
Then I click on "[data-action=Add-content]" "css_element"
|
44 |
And I should see "Fill in the Blanks"
|
40 |
And I should see "Fill in the Blanks"
|
Línea 45... |
Línea 41... |
45 |
|
41 |
|
46 |
Scenario: Users can edit content if they have the required permission
|
42 |
Scenario: Users can edit content if they have the required permission
|
47 |
Given I follow "Dashboard"
|
43 |
Given the following "user private file" exists:
|
48 |
And I follow "Manage private files..."
|
44 |
| user | admin |
|
49 |
And I upload "h5p/tests/fixtures/filltheblanks.h5p" file to "Files" filemanager
|
- |
|
50 |
And I click on "Save changes" "button"
|
45 |
| filepath | h5p/tests/fixtures/filltheblanks.h5p |
|
51 |
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
46 |
And I click on "Site pages" "list_item" in the "Navigation" "block"
|
52 |
And I click on "Content bank" "link" in the "Navigation" "block"
|
47 |
And I click on "Content bank" "link" in the "Navigation" "block"
|
53 |
And I click on "Upload" "link"
|
48 |
And I click on "Upload" "link"
|
54 |
And I click on "Choose a file..." "button"
|
49 |
And I click on "Choose a file..." "button"
|