Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Existing Tests:

Test 1Protocol: Run Cypress tests for Logs.js

State Tests

Description: Ensures that the component properly traverses through the various states. 

: Logs, Summary Page Rendered and Filters

...

  • Procedure

    1. Login and go to Logs page from menu

    2. 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

...

Logs, Date Range on Logs View

  • Procedure

    1. 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, Adds Pesticide log - Custom Product

  • Procedure

    1. from logs page navigate to add a ‘Pest Control’ log

    2. 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

    1. from logs page navigate to add a ‘Pest Control’ log

    2. 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

  1. navigate to logs page, filter by date range

...

Expected Results

...

Task Oriented Functional Tests

Description: Ensures that the component is able to handle expected input.

Logs, Edit Date

  • Procedure

    1. Select a log, modify the date and return

  • Expected Results

    • in table, new date should show with that log

...

  • Procedure

    1. from logs page navigate to add a ‘Fertilizing’ log

    2. choose farm with crops, and fill in details

    3. fill product name - save

    4. 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

Test-to-Fail

Description: Tests which should cause errors or not be accepted as input 

Protocol: Perform these tasks on the following site.

Keep this category seperate or in the flow above to check is fine?