Refactor test expectations for child kebab menu options
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m18s
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 2m18s
This commit is contained in:
@@ -23,15 +23,12 @@ Each test creates its own named child via the API in `beforeEach` and cleans up
|
||||
1. Create child `KebabEdit` via API in `beforeEach`
|
||||
|
||||
2. Navigate to `/parent`
|
||||
|
||||
- expect: A card with heading `KebabEdit` is visible
|
||||
|
||||
3. Click the "Options" button on the `KebabEdit` card
|
||||
|
||||
- expect: The kebab dropdown opens (`aria-expanded="true"` on the Options button)
|
||||
|
||||
4. Click "Edit Child" in the dropdown
|
||||
|
||||
- expect: URL matches `/parent/<id>/edit`
|
||||
- expect: Page heading "Edit Child" is visible
|
||||
|
||||
@@ -52,11 +49,9 @@ Each test creates its own named child via the API in `beforeEach` and cleans up
|
||||
2. Navigate to `/parent`
|
||||
|
||||
3. Click the "Options" button on the `KebabPoints` card
|
||||
|
||||
- expect: The kebab dropdown opens (`aria-expanded="true"` on the Options button)
|
||||
|
||||
4. Click "Delete Points" in the dropdown
|
||||
|
||||
- expect: The card shows `Points: 0`
|
||||
|
||||
---
|
||||
@@ -76,15 +71,12 @@ Each test creates its own named child via the API in `beforeEach` and cleans up
|
||||
1. Create child `KebabDelete` via API
|
||||
|
||||
2. Navigate to `/parent`
|
||||
|
||||
- expect: Card with heading `KebabDelete` is visible
|
||||
|
||||
3. Click "Options" → "Delete Child"
|
||||
|
||||
- expect: Confirmation dialog "Are you sure you want to delete this child?" appears
|
||||
|
||||
4. Click the "Delete" button in the dialog
|
||||
|
||||
- expect: The `KebabDelete` card is no longer visible in the list
|
||||
|
||||
#### 3.2. Cancel does not delete the child ✅
|
||||
@@ -94,14 +86,11 @@ Each test creates its own named child via the API in `beforeEach` and cleans up
|
||||
1. Create child `KebabDelete` via API
|
||||
|
||||
2. Navigate to `/parent`
|
||||
|
||||
- expect: Card with heading `KebabDelete` is visible
|
||||
|
||||
3. Click "Options" → "Delete Child"
|
||||
|
||||
- expect: Confirmation dialog "Are you sure you want to delete this child?" appears
|
||||
|
||||
4. Click the "Cancel" button in the dialog
|
||||
|
||||
- expect: The confirmation dialog is dismissed
|
||||
- expect: The `KebabDelete` card is still visible in the list
|
||||
|
||||
Reference in New Issue
Block a user