mgw / tests-prompts /e2e-plant.feature
alessandro trinca tornidor
test: update playwright e2e tests because of the new /thesaurus-inflated-phrase agnostic response structure
7149fa6
raw
history blame
1.97 kB
Feature: Plant Management
Scenario: Complete plant management flow - create, view, edit, and delete
Given I am on the plants homepage
And I see the plant grid with existing plants
# Create a new plant
When I click on "Add New Plant" button
Then I should see the plant creation form
When I fill in the following plant details:
| Field | Value |
| Name | Tropical Monstera |
| Species | Monstera Deliciosa |
| Description | Large tropical plant with unique split leaves |
| Price | 49.99 |
| Water Requirements | Medium |
| Sun Requirements | Partial Shade |
And I click "Create Plant" button
Then I should see a success message "Plant created successfully"
And I should be redirected to the plants grid
And I should see "Tropical Monstera" in the plant grid
# View plant details
When I click on the "Tropical Monstera" plant card
Then I should see the plant details page
And I should see all entered information displayed correctly
# Edit the plant
When I click on "Edit Plant" button
Then I should see the plant edit form with pre-filled data
When I change the following plant details:
| Field | Value |
| Name | Giant Monstera|
| Price | 59.99 |
And I click "Update Plant" button
Then I should see a success message "Plant updated successfully"
And I should be redirected to the plants grid
And I should see "Giant Monstera" in the plant grid
# Delete the plant
When I click on the "Giant Monstera" plant card
And I click on "Delete Plant" button
Then I should see a success message "Plant deleted successfully"
And I should be redirected to the plants grid
And I should not see "Giant Monstera" in the plant grid