Proyectos de Subversion Moodle

Rev

Autoría | Ultima modificación | Ver Log |

@tool @tool_admin_presets @javascript
Feature: I can revert changes after a load

  Background: Apply Starter Moodle to revert it
    Given I log in as "admin"
    And I navigate to "Site admin presets" in site administration
    And I open the action menu in "Starter" "table_row"
    And I choose "Review settings and apply" in the open action menu
    And I should see "Setting changes"
    And I click on "Apply" "button"
    And I click on "Continue" "button"

  Scenario: Presets that haven't been applied can't be reverted
    Given I open the action menu in "Full" "table_row"
    Then I should not see "Show version history"

  Scenario: Presets that have been applied can be reverted
    # Checking applied settings before reverting them.
    Given I navigate to "Advanced features" in site administration
    And the field "Enable badges" matches value "0"
    And the field "Enable competencies" matches value "0"
    And I navigate to "Plugins > Activity modules > Manage activities" in site administration
    And "Disable Database" "icon" should not exist in the "Database" "table_row"
    And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
    And "Hide" "icon" should not exist in the "Restriction by grouping" "table_row"
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
    And "Disable Logged in user" "icon" should not exist in the "Logged in user" "table_row"
    And I navigate to "Plugins > Course formats > Manage course formats" in site administration
    And "Disable" "icon" should not exist in the "Social" "table_row"
    And I navigate to "Plugins > Question behaviours > Manage question behaviours" in site administration
    And "Enabled" "icon" should not exist in the "Immediate feedback with CBM" "table_row"
    And I navigate to "Plugins > Question types > Manage question types" in site administration
    And "Enabled" "icon" should not exist in the "Calculated multichoice" "table_row"
    And I navigate to "Site admin presets" in site administration
    And I open the action menu in "Starter" "table_row"
    And I choose "Show version history" in the open action menu
    When I click on "Restore this version" "link"
    And I navigate to "Advanced features" in site administration
    Then the field "Enable badges" matches value "1"
    And the field "Enable competencies" matches value "1"
    And I navigate to "Plugins > Activity modules > Manage activities" in site administration
    And "Disable Database" "icon" should exist in the "Database" "table_row"
    And I navigate to "Plugins > Availability restrictions > Manage restrictions" in site administration
    And "Hide" "icon" should exist in the "Restriction by grouping" "table_row"
    And I navigate to "Plugins > Blocks > Manage blocks" in site administration
    And "Disable Logged in user" "icon" should exist in the "Logged in user" "table_row"
    And I navigate to "Plugins > Course formats > Manage course formats" in site administration
    And "Disable" "icon" should exist in the "Social" "table_row"
    And I navigate to "Plugins > Question behaviours > Manage question behaviours" in site administration
    And "Enabled" "icon" should exist in the "Immediate feedback with CBM" "table_row"
    And I navigate to "Plugins > Question types > Manage question types" in site administration
    And "Enabled" "icon" should exist in the "Calculated multichoice" "table_row"