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 storage purposes
3
  As the privacy officer
4
  In order to manage the data registry
5
  I need to be able to manage the data storage purposes 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 "Purposes" in the open action menu
12
    And I press "Add purpose"
13
    And I set the following fields to these values:
14
      | Name                                       | Purpose 1                                                      |
15
      | Description                                | Purpose 1 description                                          |
16
      | Lawful bases                               | Contract (GDPR Art. 6.1(b)),Legal obligation (GDPR Art 6.1(c)) |
17
      | Sensitive personal data processing reasons | Explicit consent (GDPR Art. 9.2(a))                            |
18
      | retentionperiodnumber                      | 2                                                              |
19
    When I press "Save"
20
    Then I should see "Purpose 1" in the "List of data purposes" "table"
21
    And I should see "Contract (GDPR Art. 6.1(b))" in the "Purpose 1" "table_row"
22
    And I should see "Legal obligation (GDPR Art 6.1(c))" in the "Purpose 1" "table_row"
23
    And I should see "Explicit consent (GDPR Art. 9.2(a))" in the "Purpose 1" "table_row"
24
    And I should see "2 years" in the "Purpose 1" "table_row"
25
    And "Purpose 1 Purpose 1 description" row "5" column of "List of data purposes" table should contain "No"
26
 
27
  Scenario: Update a data storage purpose
28
    Given I open the action menu in "Purpose 1" "table_row"
29
    And I choose "Edit" in the open action menu
30
    And I set the following fields to these values:
31
      | Name                                       | Purpose 1 edited                                                |
32
      | Description                                | Purpose 1 description edited                                    |
33
      | Lawful bases                               | Contract (GDPR Art. 6.1(b)), Vital interests (GDPR Art. 6.1(d)) |
34
      | Sensitive personal data processing reasons | Explicit consent (GDPR Art. 9.2(a))                             |
35
      | retentionperiodnumber                      | 3                                                               |
36
      | protected                                  | 1                                                               |
37
    When I press "Save changes"
38
    Then I should see "Purpose 1 edited" in the "List of data purposes" "table"
39
    And I should see "Purpose 1 description edited" in the "Purpose 1 edited" "table_row"
40
    And I should see "Vital interests (GDPR Art. 6.1(d))" in the "Purpose 1 edited" "table_row"
41
    And I should see "3 years" in the "Purpose 1 edited" "table_row"
42
    But I should not see "Legal obligation (GDPR Art 6.1(c))" in the "Purpose 1 edited" "table_row"
43
    And "Purpose 1 edited Purpose 1 description edited" row "5" column of "List of data purposes" table should not contain "No"
44
 
45
  Scenario: Delete a data storage purpose
46
    Given I open the action menu in "Purpose 1" "table_row"
47
    And I choose "Delete" in the open action menu
48
    And I should see "Delete purpose"
49
    And I should see "Are you sure you want to delete the purpose 'Purpose 1'?"
50
    When I click on "Delete" "button" in the "Delete purpose" "dialogue"
51
    Then I should not see "Purpose 1" in the "List of data purposes" "table"