forked from global-121/121-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Download_validation_data.feature
49 lines (44 loc) · 2.44 KB
/
Download_validation_data.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@aw-app
Feature: Download validation data
Background:
Given a logged-in user with "RegistrationPersonalForValidationREAD" permission
Given the user is on the "actions" page
Scenario: Downloading validation data successfully (assigned to one program)
Given program "X" and "Y" are seeded
Given the user sees the "main menu" options
Given the user is assigned to program "X"
Given "N" PAs are NOT validated for program "X"
Given "O" PAs are NOT validated for program "Y"
Given "N" PAs have filled in program questions for program "X"
Given "O" PAs have filled in program questions for program "Y"
When the user selects the "download validation data" option
Then a message "data is being downloaded" is shown
And when finished a message "data is downloaded for {N} People Affected" is shown
And the validation data is stored in local storage where it replaces any existing validation data
And the "main menu" is shown
Scenario: Downloading validation data successfully (assigned to multiple program)
Given program "X" and "Y" are seeded
Given the user sees the "main menu" options
Given the user is assigned to program "X" and "Y"
Given "N" PAs are NOT validated for program "X"
Given "O" PAs are NOT validated for program "Y"
Given "N" PAs have filled in program questions for program "X"
Given "O" PAs have filled in program questions for program "Y"
When the user selects the "download validation data" option
Then a message "data is being downloaded" is shown
And when finished a message "data is downloaded for {N + O} People Affected" is shown
And the validation data is stored in local storage where it replaces any existing validation data
And the "main menu" is shown
Scenario: Downloading validation data unsuccessfully because no available data
Given the user sees the "main menu" options
Given the user is assigned to program "X"
Given "0" PAs are NOT validated for program "X"
Given "0" PAs have filled in program questions for program "X"
When the user selects the "download validation data" option
Then a message "No validation data could be downloaded at this time" is shown
And the "main menu" is shown
Scenario: No internet connectivity
Given the user sees the "main menu" options
When there is no internet connectivity
Then the 'Download validation data' option is disabled
And an 'OFFLINE' marker is visible in the header