// 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() }) })