Refactor sensor related tables https://lite-farm.atlassian.net/browse/LF-2811
Role:
FO/FM/EO: Can access “+” Tab which has the add sensor point option under point locations
FW: Cannot view or access “+” Tab
API: N/A
Dates: N/A
Switching farms:N/A
Input constraints: N/A
Data transformation: N/A
Cascading effects: N/A
Synchronous/ Asynchronous: Synchronous and Asynchronous
External service: N/A
Test Suite
Test Step # | Description | Test Data | Expected Result | Actual Result | Pass/Fail |
1 | FO/FM/EO navigates to the farm map and clicks on the “+” drawer | Drawer is opened, and “Add Sensor” exists under the points section | |||
2 | User clicks “Add Sensor” | “+” Add location drawer is closed and sensor bulk upload modal is displayed | |||
3 | User uploads a .csv file with valid sensor data and timeout set to trigger asynchronous route | Asynchronous upload modal is displayed, and later notification of successful upload is generated | |||
4 | User clicks navigates to notification centre and clicks on successful sensor upload notification and then clicks “Take me there” | User redirected to farm map and sensors displayed correctly | |||
5 | User long clicks sensor icon | Sensor readings modal displayed correctly | |||
6 | User clicks on a reading type component | User redirected to sensor reading tab of hybrid sensor details view. Readings are displayed correctly | |||
7 | User clicks on sensor details tab | Sensor details displayed correctly | |||
8 | User clicks update | User is redirected to sensor update view | |||
9 | User changes sensor properties and clicks “update” | Sensor user redirected to sensor details view. Updated details displayed. | |||
10 | User logs out and signs back in as FO/EO/FM and navigates to the farm map | Sensors displayed on farm map | |||
11 | User clicks on above sensor | User redirected to sensor details tab of hybrid view and details are displayed correctly | |||
12 | User retires above sensor | Sensor disappears from farm map | |||
13 | User logs out and signs back in as FO/EO/FM and navigates to the farm map | Retired sensor does not appear on farm map | |||
14 | With database management tool check the sensors table | Retired sensor exists and is soft deleted |