Description: Add a new Planting to the map.
Given I am on the map page with the plant layer active
When I select a plant to add to the map
Then I can see how many of the same plants are already present on the map, at the current date, in the status panel
Then the same plants already present on the map, at the current date, are highlighted with an equality marker
When I click on the map
Then I can see that a new Planting was added
When I select the new Planting
Then I can see in the toolbar that created at, created by, modified at and modified by are correctly set
Actual Result:
Test Result:
Notes: Can be repeated with different plants. Can be repeated in another tab/by another user.
Description: Plant attributes shown on planting
Given I am on the map page with the plant layer active
When I select a planting
Then I can see the following Plant Attributes in the toolbar: Functions, Edible (Yes, No or None found), Edible parts, Life cycle (annual, biennial, perennial or None found), Warnings
Actual Result:
Test Result:
Notes:
Description: Plant attributes shown (with calculated common values) on multiple plantings
Given I am on the map page with the plant layer active
When I select multiple plantings of different plant species with differing attributes
Then I can see the following Plant Attributes in the toolbar: Functions, Edible (Yes, No or None found), Edible parts, Life cycle (annual, biennial, perennial or None found), Warnings
And only attributes shared by all selected plantings are displayed
And if attributes differ, a warning indicator is shown
Actual Result:
Test Result:
Notes:
Description: Move a Planting around the map.
Given I am on the map page with the plant layer active
When I drag a planting
When I drop the planting
Then I can see that the planting was moved
When I select the new Planting
Then I can see in the toolbar that modified at and modified by are correctly set
Actual Result:
Test Result:
Notes: Can be repeated with different plants. Can be repeated in another tab/by another user.
Description: Edit an existing Planting on the map.
Given I am on the map page with the plant layer active
When I select a plant that is already planted
Then I can see detailed Information about this plant in the left toolbox
When I edit the Notes (or any other field)
Then I can see in the toolbar that I changed are correctly changed
Actual Result:
Test Result:
Notes: Also after reloading the site
Description: Remove a existing Planting on the map.
Given I am on the map page with the plant layer active
When I select a plant that is already planted
Then I can see detailed Information about this plant in the left toolbox
When I edit the "Removed on" date to a date in the past
Then I can no longer see the plant
Actual Result:
Test Result:
Notes:
Description: Clear the "Removed on"/"Added on" of an existing planting on the map.
Given I am on the map page with the plant layer active
When I select a plant that is already planted and has a valid "Removed on"/"Added on" date
Then I clear the "Removed on"/"Added on" date
Then I have a valid Planting without the previous date
Actual Result:
Test Result:
Notes: Changes should still persist/be cleared after
Reloading the site
Switching from and to the selected planting
Description: Deleting a existing Planting on the map.
Given I am on the map page with the plant layer active
When I select a plant that is already planted
Then I can see detailed Information about this plant in the left toolbox
When I click the "Delete planting" Button
Then I can no longer see the plant
Actual Result:
Test Result:
Notes:
Description: Diagonally resize single planting.
Given I am on the map page with the plant layer active and a single planting selected
When I drag a corner
Then I can see that the new plant size has the same ratio of length to width as before
Actual Result:
Test Result:
Description: Plants are not allowed to have a width of 0 or negative.
Given I am on the map page with the plant layer active
When I select a plant that is already planted
Then I can see detailed Information about this plant in the left toolbox
When I edit the Width
Then I can see the plant size has changed
Then I can see in the plant attributes that the modified at and modified by are correctly set
When I set the Width to a non-positive value
Then I can see that the input is marked in red and the value was not applied
Actual Result:
Test Result:
Notes:
Description: Plants relations show up correctly.
Given I am on the map page with the plant layer active
When I select a planting that has a companion relation
Then I can see green dotted line between selected planting and its companion
When I select a planting that has an antagonist relation
Then I can see red dashes line between selected planting and its antagonist
When I select a planting that has an ambivalent relation
Then I can see an orange line with dashes and dots between selected plantings and its ambivalent partner
Actual Result:
Test Result:
Notes: Suggested plant relations for test
companion: Allium cepa, Cucurbita maxima
ambivalent: Allium cepa, Solanum lycopersicum
antagonist: Allium cepa, Vicia faba