Add end-to-end tests for parent item management
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 3m31s
All checks were successful
Chore App Build, Test, and Push Docker Images / build-and-push (push) Successful in 3m31s
- Implement tests for creating, editing, and deleting chores, kindness acts, and penalties. - Add tests to verify conversion of default items to user items and restoration of system defaults upon deletion. - Ensure proper cancellation of creation and editing actions. - Create a comprehensive plan document outlining the test scenarios and expected behaviors.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// spec: e2e/plans/create-child.plan.md
|
||||
|
||||
import { test, expect } from '@playwright/test'
|
||||
import { STORAGE_STATE_NO_PIN } from '../../e2e-constants'
|
||||
|
||||
test.use({ storageState: STORAGE_STATE_NO_PIN })
|
||||
|
||||
test.describe('Create Child', () => {
|
||||
test('Add Child FAB is hidden when parent auth is expired', async ({ page }) => {
|
||||
// Navigate to app root - with no parent auth, router redirects to /child
|
||||
await page.goto('/')
|
||||
|
||||
// expect: the 'Add Child' FAB is NOT visible (not in parent mode)
|
||||
await expect(page.getByRole('button', { name: 'Add Child' })).not.toBeVisible()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user