Currently the location entry portion of the app is error prone.
We think these errors are a result of not having an explicit action to set the location and rely on the background GPS too much.
The problematic scenario is:
Scenario: Location is incorrectly submitted
Given I haven't been able to get a site location lock
Then I fill out the rest of the sample
But I can't submit yet because there is no location
When I later move to a different location
And navigate to the site location screen
Then the location is set with an incorrect point
And I have no visual indication that this is the wrong place
And the sample uploads immediately.
Proposed Solution:
Make setting the location require a manual button click
Move the location to a new screen to emphasise its importance
Feature: Location entry
The location screen displays the currently set location or indicates the location is unset.
There are two options: set via the GPS location and select via the map.
It's an important requirement that the location is displayed on the screen to indicate that it has been set and that a active human interaction needs to occur to set that field. Equally important is that when a user returns to that screen when a location couldn't be set that the site location will not be set automatically; this leads to the incorrect site location data we have experienced.
Given the Location Entry screen is opened
And a GPS lock is obtained
Then "Use Current Location" is enabled
When "Use Current Location" is selected
Then the location is set to the GPS lock.
Given the Location Entry screen is opened
When "Find location on map" is selected
Then the Location Map screen is opened
Currently the location entry portion of the app is error prone. We think these errors are a result of not having an explicit action to set the location and rely on the background GPS too much.
The problematic scenario is:
Scenario: Location is incorrectly submitted
Given I haven't been able to get a site location lock Then I fill out the rest of the sample But I can't submit yet because there is no location When I later move to a different location And navigate to the site location screen Then the location is set with an incorrect point And I have no visual indication that this is the wrong place And the sample uploads immediately.
Proposed Solution:
Feature: Location entry
The location screen displays the currently set location or indicates the location is unset. There are two options: set via the GPS location and select via the map.
It's an important requirement that the location is displayed on the screen to indicate that it has been set and that a active human interaction needs to occur to set that field. Equally important is that when a user returns to that screen when a location couldn't be set that the site location will not be set automatically; this leads to the incorrect site location data we have experienced.
Given the Location Entry screen is opened And a GPS lock is obtained Then "Use Current Location" is enabled When "Use Current Location" is selected Then the location is set to the GPS lock.
Given the Location Entry screen is opened When "Find location on map" is selected Then the Location Map screen is opened