When a task is assigned to a user without a wage, prompt to provide a wage - LF-2643Getting issue details... STATUS
Role:
FW never see this interaction
User preferences:
All copy is in users preferred language
API:
Endpoint must verify appropriate permission to modify assignee
Endpoint must verify appropriate permission to modify userFarm
Dates: N/A
Switching farms:N/A
Input constraints:
“Set hourly wage” input value must be a decimal >= 0 AND < 999,999,999
Data transformation: N/A
Cascading effects: N/A
Synchronous/ Asynchronous: N/A
External service: N/A
Test Suite
Test Step # | Description | Test Data | Expected Result | Actual Result | Pass/Fail |
1 | While signed into a farm with atleast one existing unassigned task as FM/FO/EO, navigate to the tasks view and click on the text “unassigned” on one of the planned task cards | Quick assign modal is displayed, for formatted as per Jira ticket | |||
2 | User selects an assignee with a wage on the “assignee” drop down | No change to the standard quick assign modal | |||
3 | User selects an assignee without a wage on the “assignee” drop down | New wage assignment elements displayed as per Jira ticket | |||
4 | User selects “yes, set an hourly wage” radio button under “Would you like to set an hourly wage?” | “Set hourly wage” input value displayed | |||
5 | User inputs a wage < 0 or > 999,999,999 | “Hourly wage must be a positive number less than 999,999,999” | |||
6 | User inputs an hourly wage and clicks “Update” | task assignment successful snack bar displayed. Quick assign modal is closed | |||
7 | User navigates to the people view and and clicks on the user assigned the task above | Hourly wage set in step 5 is displayed | |||
8 | User repeats returns to the view and click on the assignee link on the same task as in step 1 and assigns the task to another user without a wage | New wage assignment elements displayed as per Jira ticket | |||
9 | User selects “Yes, just for this task” radio button under “Would you like to set an hourly wage?” | “Set hourly wage” input value displayed | |||
10 | User repeats step 6 | ||||
11 | User completes the task above ensuring they remember the value set for duration | Task completed successfully | |||
12 | User navigates to the labour expenses section of finances | The labour cost for the assignee set in step 7 is correct | |||
13 | User navigates back to the task view and clicks on another assignee link on a planned task and repeats step 3 | ||||
14 | User selects the “No” radio option under “Would you like to set an hourly wage?” and clicks “Update” | task assignment successful snack bar displayed. Quick assign modal is closed | |||
15 | User repeats step 7 | Assignee user still has no wage | |||
16 | User repeats step 13 | ||||
17 | User selects the “No, don’t ask again” radio option under “Would you like to set an hourly wage?” and clicks “Update” | task assignment successful snack bar displayed. Quick assign modal is closed | |||
18 | User navigates back to the tasks view and clicks on the assignee link of a task, and then assigns the task to the same user as in step 17 | No wage assignment UI elements are displayed | |||
19 | User signs out and signs back into the same farm as above as a farm worker without a wage. User navigates to the tasks view and clicks on the assignee link on an unassigned planned task | The quick assign modal is displayed without any wage assignment elements | |||
20 | User assigns the task above to themselves | No change to the standard quick assign modal | |||
21 | User checks the “Assign all tasks on this date to {full_name}.” checkbox and clicks update | task assignment successful snack bar displayed. Quick assign modal is closed. All unassigned tasks on the day are assigned to the user in step 19 | |||
22 | User repeats step 1 to 4 with all language preference options | all copy in user preferred language or MISSING tags exist | |||
23 | Using an API testing tool attempt to PATCH a planned task's assignee using FW credentials | PATCH fails gracefully | |||
24 | Using an API testing tool attempt to PATCH a user's wage using FW credentials | PATCH fails gracefully | |||
25 | Using an API testing tool attempt to PATCH a wage_at_moment using FW credentials | PATCH fails gracefully | |||
26 | Using an API testing tool attempt to PATCH all unassigned tasks on this date using credentials for a user that is not a user on the farm | PATCH fails gracefully |