Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@tool @tool_dataprivacy @javascript
2
Feature: Manage data categories
3
  As the privacy officer
4
  In order to manage the data registry
5
  I need to be able to manage the data categories for the data registry
6
 
7
  Background:
8
    Given I log in as "admin"
9
    And I navigate to "Users > Privacy and policies > Data registry" in site administration
10
    And I open the action menu in "region-main" "region"
11
    And I choose "Categories" in the open action menu
12
    And I press "Add category"
13
    And I set the field "Name" to "Category 1"
14
    And I set the field "Description" to "Category 1 description"
15
    When I click on "Save" "button" in the "Add category" "dialogue"
16
    Then I should see "Category 1" in the "List of data categories" "table"
17
    And I should see "Category 1 description" in the "Category 1" "table_row"
18
 
19
  Scenario: Update a data category
20
    Given I open the action menu in "Category 1" "table_row"
21
    And I choose "Edit" in the open action menu
22
    And I set the field "Name" to "Category 1 edited"
23
    And I set the field "Description" to "Category 1 description edited"
24
    When I press "Save changes"
25
    Then I should see "Category 1 edited" in the "List of data categories" "table"
26
    And I should see "Category 1 description edited" in the "List of data categories" "table"
27
 
28
  Scenario: Delete a data category
29
    Given I open the action menu in "Category 1" "table_row"
30
    And I choose "Delete" in the open action menu
31
    And I should see "Delete category"
32
    And I should see "Are you sure you want to delete the category 'Category 1'?"
33
    When I click on "Delete" "button" in the "Delete category" "dialogue"
34
    Then I should not see "Category 1" in the "List of data categories" "table"