LF-2811 Test plan

Refactor sensor related tables https://lite-farm.atlassian.net/browse/LF-2811

Role: N/A

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 adds temperature reading data for the sensor to the database

 

 

 

 

6

User long clicks sensor icon

 

Sensor readings modal displayed correctly

 

 

7

User clicks on a reading type component

 

User redirected to sensor reading tab of hybrid sensor details view. Readings are displayed correctly

 

 

8

User clicks on sensor details tab

 

Sensor details displayed correctly

 

 

9

User clicks update

 

User is redirected to sensor update view

 

 

10

User changes sensor properties and clicks “update”

 

user redirected to sensor details view. Updated details displayed.

 

 

11

User logs out and signs back in as FO/EO/FM and navigates to the farm map

 

Sensors displayed on farm map

 

 

12

User clicks on above sensor

 

User redirected to sensor details tab of hybrid view and details are displayed correctly

 

 

13

User retires above sensor

 

Sensor disappears from farm map

 

 

14

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

 

 

15

With database management tool check the sensors table

 

Retired sensor exists and is soft deleted