Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@tool @tool_admin_presets @javascript
2
Feature: I can revert changes after a load
3
 
4
  Background: Apply Starter Moodle to revert it
5
    Given I log in as "admin"
6
    And I navigate to "Site admin presets" in site administration
7
    And I open the action menu in "Starter" "table_row"
8
    And I choose "Review settings and apply" in the open action menu
9
    And I should see "Setting changes"
10
    And I click on "Apply" "button"
11
    And I click on "Continue" "button"
12
 
13
  Scenario: Presets that haven't been applied can't be reverted
14
    Given I open the action menu in "Full" "table_row"
15
    Then I should not see "Show version history"
16
 
17
  Scenario: Presets that have been applied can be reverted
18
    # Checking applied settings before reverting them.
19
    Given I navigate to "Advanced features" in site administration
20
    And the field "Enable badges" matches value "0"
21
    And the field "Enable competencies" matches value "0"
22
    And I navigate to "Plugins > Activity modules > Manage activities" in site administration
23
    And "Disable Database" "icon" should not exist in the "Database" "table_row"
24
    And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
25
    And "Hide" "icon" should not exist in the "Restriction by grouping" "table_row"
26
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
27
    And "Disable Logged in user" "icon" should not exist in the "Logged in user" "table_row"
28
    And I navigate to "Plugins > Course formats > Manage course formats" in site administration
29
    And "Disable" "icon" should not exist in the "Social" "table_row"
30
    And I navigate to "Plugins > Question behaviours > Manage question behaviours" in site administration
31
    And "Enabled" "icon" should not exist in the "Immediate feedback with CBM" "table_row"
32
    And I navigate to "Plugins > Question types > Manage question types" in site administration
33
    And "Enabled" "icon" should not exist in the "Calculated multichoice" "table_row"
34
    And I navigate to "Site admin presets" in site administration
35
    And I open the action menu in "Starter" "table_row"
36
    And I choose "Show version history" in the open action menu
37
    When I click on "Restore this version" "link"
38
    And I navigate to "Advanced features" in site administration
39
    Then the field "Enable badges" matches value "1"
40
    And the field "Enable competencies" matches value "1"
41
    And I navigate to "Plugins > Activity modules > Manage activities" in site administration
42
    And "Disable Database" "icon" should exist in the "Database" "table_row"
43
    And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
44
    And "Hide" "icon" should exist in the "Restriction by grouping" "table_row"
45
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
46
    And "Disable Logged in user" "icon" should exist in the "Logged in user" "table_row"
47
    And I navigate to "Plugins > Course formats > Manage course formats" in site administration
48
    And "Disable" "icon" should exist in the "Social" "table_row"
49
    And I navigate to "Plugins > Question behaviours > Manage question behaviours" in site administration
50
    And "Enabled" "icon" should exist in the "Immediate feedback with CBM" "table_row"
51
    And I navigate to "Plugins > Question types > Manage question types" in site administration
52
    And "Enabled" "icon" should exist in the "Calculated multichoice" "table_row"