Existing Tests:
Test 1: Logs, Summary Page Rendered and Filters
Currently logs of 9 types populated (Fertilizing, Pest Control, Harvest, Seeding, Field Work, Soil Data, Irrigation, Scouting, Other)
Procedure
Login and go to Logs page from menu
Check logs are rendered, and then for Activities, Crops and Fields filters check default filter selection and manipulate each one
Expected Results
after navigating to logs page, check logs for all items are shown
all filters should be set to general selection as default to show all results ('All', ‘All Crops’, ‘All Fields’) and changes in selection to all three of these changes the logs rendered below accurately
Test 2: Logs, Adds Pesticide log - Custom Product
Procedure
from logs page navigate to add a ‘Pest Control’ log
add custom product
Expected Results
can navigate to add a ‘Pest Control’ log and fill add custom product form with name and save
Test 3: Logs, Adds Pesticide log - Target
Procedure
from logs page navigate to add a ‘Pest Control’ log
add custom product - test target group drop down and fill other category
Expected Results
clicking add target groups, renders Add a Disease page with working drop-down and empty name input
Tests to add/update:
Logs, Date Range on Logs View
Procedure
navigate to logs page, filter by date range
Expected Results
only those that fit time range are rendered in logs table with all relevant fields still visible
Logs, Edit Date
Procedure
Select a log, modify the date and return
Expected Results
in table, new date should show with that log
Logs, Add Harvest Log
Procedure
Add a harvest log - save without selecting crop and then with crop
Expected
default for drop-down empty and crop required otherwise error
Logs, Add Seeding Log
Procedure
Add a harvest log - attempt save without and with crop
Expected
default for drop-down empty and crop required otherwise error
Logs, Add Field Work Log
Procedure
Add a Field Work log - attempt save without and with crop
Expected
default for drop-down empty and crop required otherwise error
Logs, Add Soil Analysis Log
Procedure
Add a Soil Analysis log
Expected
empty fields default, clicking on ‘Show more info’ gives more fields to fill, should get error when not specifying field, depth or texture
Logs, Add Irrigation Log
Procedure
Add a Irrigation log - attempt save without and with crop/type
Expected
default for drop-downs and fields are empty, crop and type are required so not having them gives error
Logs, Add Scouting Log
Procedure
Add a Scouting log for field with crops and again for field without
Expected
defaults empty, field and type are required so not having them gives error
Logs, Add Other Log
Procedure
Add an Other log for field with crops and again for field without
Expected
defaults empty, field with crops should show crops input, field cannot be empty
Logs, Edit and Delete for all Log types
Procedure
Edit the details of each log
Delete the log
Expected
Changes persist, when deleting confirmation modal shows
Fertilizing log features/cases (changes are coming based on last meeting):
No field, only product selected
custom product
field with crops - crop field appears right now default empty
many crops and many fields versus fields and no crops versus product and no fields or crops
if no product specified in all cases error when saving
Logs, Add Fertilizing Logs - Custom Product & Field without crops
Procedure
from logs page navigate to add a ‘Fertilizing’ log
click add custom product, choose a template product and check values populated - save - check error
fill product name - save
choose field, click drop down to find custom product
Expected Results
all values in custom product should be set to 0 default
selecting product template changes all values and error arises if no name specified
return to original page after save, then find custom product in drop down and save log
this log should now be listed with fields and crops as ‘None’
Logs, Add Fertilizing Logs - Field with crops
Procedure
from logs page navigate to add a ‘Fertilizing’ log
choose farm with crops, and fill in details
fill product name - save
repeat with multiple crops selected and multiple fields
Expected Results
when selecting field with crops, crop field appears
in log- values under field and crop not None - when multiple shows the word Multiple