Add end-to-end tests for parent rewards management
Some checks failed
Chore App Build, Test, and Push Docker Images / build-and-push (push) Failing after 2m33s

- Implement tests for creating, editing, canceling, and deleting rewards in parent mode.
- Include scenarios for converting default rewards to user items and verifying restoration of default rewards after deletion.
- Create a comprehensive test plan outlining the steps and expectations for each scenario.
This commit is contained in:
2026-03-12 23:53:36 -04:00
parent f250c42e5e
commit 8da04676ca
11 changed files with 528 additions and 10 deletions

View File

@@ -5,7 +5,7 @@ import path from 'path'
import { fileURLToPath } from 'url'
const __dirname = path.dirname(fileURLToPath(import.meta.url))
const TEST_IMAGE = path.join(__dirname, '../../../../../resources/logo/star_only.png')
const TEST_IMAGE = path.join(__dirname, '../../.resources/crown.png')
async function deleteNamedChildren(request: any, names: string[]) {
const res = await request.get('/api/child/list')