Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@core @core_admin
2
Feature: Purge caches
3
  In order to see changes to cached data
4
  As a Moodle administrator
5
  I want manually purge different data and file caches
6
 
7
  Background:
8
    Given I log in as "admin"
9
    And I navigate to "Development > Purge caches" in site administration
10
 
11
  Scenario: Purge all caches
12
    Given I should not see "All caches were purged"
13
    When I press "Purge all caches"
14
    Then I should see "All caches were purged"
15
 
16
  Scenario: Purge selected caches
17
    Given I should not see "Selected caches were purged"
18
    When I set the field "Themes" to "1"
19
    And I click on "Purge selected caches" "button" in the "#fitem_id_purgeselectedcaches" "css_element"
20
    Then I should see "The selected caches were purged"
21
 
22
  Scenario: Purge selected caches without selecting any caches
23
    Given I should not see "Select one or more caches to purge"
24
    And I click on "Purge selected caches" "button" in the "#fitem_id_purgeselectedcaches" "css_element"
25
    Then I should not see "The selected caches were purged"
26
    And I should see "Select one or more caches to purge"
27
 
28
  Scenario: Redirect back to the original page after following a Purge all caches link
29
    Given I am on site homepage
30
    And I should see "Available courses"
31
    And I should not see "All caches were purged"
32
    When I follow "Purge all caches"
33
    Then I should see "All caches were purged"
34
    And I should see "Available courses"