Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
@tool @tool_dataprivacy
2
Feature: Contact the privacy officer
3
  As a user
4
  In order to reach out to the site's privacy officer
5
  I need to be able to contact the site's privacy officer in Moodle
6
 
7
  Background:
8
    Given the following "users" exist:
9
      | username | firstname | lastname | email          |
10
      | student1 | Student   | 1        | s1@example.com |
11
 
12
  @javascript
13
  Scenario: Contacting the privacy officer
14
    Given the following config values are set as admin:
15
      | contactdataprotectionofficer | 1 | tool_dataprivacy |
16
    When I log in as "student1"
17
    And I follow "Profile" in the user menu
18
    And I click on "Contact the privacy officer" "link"
19
    And I set the field "Message" to "Hello DPO!"
20
    And I click on "Send" "button" in the "Contact the privacy officer" "dialogue"
21
    Then I should see "Your request has been submitted to the privacy officer"
22
    And I click on "Data requests" "link"
23
    And I should see "Hello DPO!" in the "General enquiry" "table_row"
24
 
25
  Scenario: Contacting the privacy officer when not enabled
26
    When I log in as "student1"
27
    And I follow "Profile" in the user menu
28
    Then "Contact the privacy officer" "link" should not exist