1441 |
ariadna |
1 |
@tool @tool_generator @_file_upload
|
|
|
2 |
Feature: Make test scenario can execute specific steps
|
|
|
3 |
In order to create all sort of testing scenarios
|
|
|
4 |
As a developer
|
|
|
5 |
I need to execute some generic steps in the current instance
|
|
|
6 |
|
|
|
7 |
@javascript
|
|
|
8 |
Scenario: Make test scenario can enable and disable plugins
|
|
|
9 |
Given I disable "page" "mod" plugin
|
|
|
10 |
And I log in as "admin"
|
|
|
11 |
And I navigate to "Development > Create testing scenarios" in site administration
|
|
|
12 |
And I upload "admin/tool/generator/tests/fixtures/testscenario/scenario_plugins.feature" file to "Feature file" filemanager
|
|
|
13 |
And I press "Import"
|
|
|
14 |
And I should see "Scenario: Course with some disabled plugins"
|
|
|
15 |
When I am on "C1" course homepage with editing mode on
|
|
|
16 |
And I open the activity chooser
|
|
|
17 |
Then I should see "Page" in the "Add an activity or resource" "dialogue"
|
|
|
18 |
And I should not see "Book" in the "Add an activity or resource" "dialogue"
|