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

This commit is contained in:
2026-03-13 23:29:01 -04:00
parent c2b022eb0b
commit cd902da292

View File

@@ -23,17 +23,14 @@ Each test creates its own named child via the API in `beforeEach` and cleans up
1. Create child `KebabEdit` via API in `beforeEach` 1. Create child `KebabEdit` via API in `beforeEach`
2. Navigate to `/parent` 2. Navigate to `/parent`
- expect: A card with heading `KebabEdit` is visible
- expect: A card with heading `KebabEdit` is visible
3. Click the "Options" button on the `KebabEdit` card 3. Click the "Options" button on the `KebabEdit` card
- expect: The kebab dropdown opens (`aria-expanded="true"` on the Options button)
- expect: The kebab dropdown opens (`aria-expanded="true"` on the Options button)
4. Click "Edit Child" in the dropdown 4. Click "Edit Child" in the dropdown
- expect: URL matches `/parent/<id>/edit`
- expect: URL matches `/parent/<id>/edit` - expect: Page heading "Edit Child" is visible
- expect: Page heading "Edit Child" is visible
--- ---
@@ -52,12 +49,10 @@ Each test creates its own named child via the API in `beforeEach` and cleans up
2. Navigate to `/parent` 2. Navigate to `/parent`
3. Click the "Options" button on the `KebabPoints` card 3. Click the "Options" button on the `KebabPoints` card
- expect: The kebab dropdown opens (`aria-expanded="true"` on the Options button)
- expect: The kebab dropdown opens (`aria-expanded="true"` on the Options button)
4. Click "Delete Points" in the dropdown 4. Click "Delete Points" in the dropdown
- expect: The card shows `Points: 0`
- expect: The card shows `Points: 0`
--- ---
@@ -76,16 +71,13 @@ Each test creates its own named child via the API in `beforeEach` and cleans up
1. Create child `KebabDelete` via API 1. Create child `KebabDelete` via API
2. Navigate to `/parent` 2. Navigate to `/parent`
- expect: Card with heading `KebabDelete` is visible
- expect: Card with heading `KebabDelete` is visible
3. Click "Options" → "Delete Child" 3. Click "Options" → "Delete Child"
- expect: Confirmation dialog "Are you sure you want to delete this child?" appears
- expect: Confirmation dialog "Are you sure you want to delete this child?" appears
4. Click the "Delete" button in the dialog 4. Click the "Delete" button in the dialog
- expect: The `KebabDelete` card is no longer visible in the list
- expect: The `KebabDelete` card is no longer visible in the list
#### 3.2. Cancel does not delete the child ✅ #### 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 1. Create child `KebabDelete` via API
2. Navigate to `/parent` 2. Navigate to `/parent`
- expect: Card with heading `KebabDelete` is visible
- expect: Card with heading `KebabDelete` is visible
3. Click "Options" → "Delete Child" 3. Click "Options" → "Delete Child"
- expect: Confirmation dialog "Are you sure you want to delete this child?" appears
- expect: Confirmation dialog "Are you sure you want to delete this child?" appears
4. Click the "Cancel" button in the dialog 4. Click the "Cancel" button in the dialog
- expect: The confirmation dialog is dismissed
- expect: The confirmation dialog is dismissed - expect: The `KebabDelete` card is still visible in the list
- expect: The `KebabDelete` card is still visible in the list