1 |
efrain |
1 |
@tool @tool_dataprivacy
|
|
|
2 |
Feature: Manage my own data requests
|
|
|
3 |
In order to manage my own data requests
|
|
|
4 |
As a user
|
|
|
5 |
I need to be able to view and cancel all my data requests
|
|
|
6 |
|
|
|
7 |
Background:
|
|
|
8 |
Given the following "users" exist:
|
|
|
9 |
| username | firstname | lastname | email |
|
|
|
10 |
| student1 | Student | 1 | s1@example.com |
|
|
|
11 |
And the following config values are set as admin:
|
|
|
12 |
| contactdataprotectionofficer | 1 | tool_dataprivacy |
|
|
|
13 |
|
|
|
14 |
@javascript
|
|
|
15 |
Scenario: Cancel my own data request
|
|
|
16 |
Given 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 |
And I should see "Your request has been submitted to the privacy officer"
|
|
|
22 |
When I click on "Data requests" "link"
|
|
|
23 |
And I open the action menu in "Hello DPO!" "table_row"
|
|
|
24 |
And I choose "Cancel" in the open action menu
|
|
|
25 |
And I click on "Cancel request" "button" in the "Cancel request" "dialogue"
|
|
|
26 |
Then I should see "Cancelled" in the "Hello DPO!" "table_row"
|