Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@report @report_allbackups @editor @editor_atto @atto @atto_media @_file_upload @javascript
2
Feature: All backups report.
3
 
4
  Background:
5
    Given the following "users" exist:
6
      | username | firstname | lastname | email |
7
      | student1 | Student | 1 | student1@example.com |
8
    And the following "blocks" exist:
9
      | blockname     | contextlevel | reference | pagetypepattern | defaultregion |
10
      | private_files | System       | 1         | my-index        | side-post     |
11
    And I log in as "student1"
12
    And I follow "Manage private files..."
13
    And I upload "report/allbackups/tests/fixtures/fakebackup1-UFC101-123456.mbz" file to "Files" filemanager
14
    And I upload "report/allbackups/tests/fixtures/fakebackup2-MATH314-15926536.mbz" file to "Files" filemanager
15
    And I click on "Save changes" "button"
16
    And I log out
17
    And I log in as "admin"
18
 
19
  Scenario: Admin can view backups
20
    When I navigate to "Reports > All backups" in site administration
21
    Then I should see "fakebackup1-UFC101-123456.mbz"
22
    And I should see "fakebackup2-MATH314-15926536.mbz"
23
 
24
  Scenario: Admin can filter backups
25
    When I navigate to "Reports > All backups" in site administration
26
    And I set the field "id_filename" to "MATH314"
27
    And I press "Add filter"
28
    And I should not see "fakebackup1-UFC101-123456.mbz"
29
    And I should see "fakebackup2-MATH314-15926536.mbz"
30
    And I press "Remove all filters"
31
    Then I should see "fakebackup1-UFC101-123456.mbz"
32
    And I should see "fakebackup2-MATH314-15926536.mbz"
33
 
34
  Scenario: Admin can delete backups.
35
    When I navigate to "Reports > All backups" in site administration
36
    And I click on "Delete" "link" in the "fakebackup1-UFC101-123456.mbz" "table_row"
37
    And I press "Continue"
38
    And I should not see "fakebackup1-UFC101-123456.mbz"
39
    And I should see "fakebackup2-MATH314-15926536.mbz"