forked from global-121/121-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUpload_validation_data.feature
40 lines (35 loc) · 1.76 KB
/
Upload_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
@aw-app
Feature: Upload validation data
Background:
Given a logged-in user with "RegistrationPersonalUPDATE" permission
Given the user is on the "actions" page
Scenario: Validated data to upload available
Given validated data for at least "1" PA is available
When the user sees the "main menu"
Then a label with value "1" is shown in the "upload validation data"-option
Scenario: No validated data to upload available
Given no validated data is available
When the user sees the "main menu"
Then the "Upload validation data" option is disabled
And no label with value is shown in the the "upload validation data"-option
Scenario: Validated data to upload available, but no internet connection
Given validated data for at least "1" PA is available
And there is no internet connectivity
When the user sees the "main menu"
Then a label with value "1" is shown in the "upload validation data"-option
And the "Upload validation data" option is disabled
And an "OFFLINE" marker is shown in the header
Scenario: Upload validation data
Given there is internet connectivity
Given validated data for at least "1" PA is available
Given the "main menu" is shown
When the user presses "upload validation data"
Then a message is showing that "Validation data is being uploaded"
When it finishes
Then a positive feedback message is shown
And the "main menu" component is shown
And the "upload validation data" component is now disabled
And it has no numbered label attached anymore
And the status of the PA in the portal is updated to "Validated"
And the inclusion score is recalculated
And - if configured for the program - the "paymentAmountMultiplier" is recalculated based on formula