Add end-to-end tests for chore and project functionalities, enhance auth flow, and update package version

This commit is contained in:
Mo Tarbin
2026-08-11 00:55:17 -04:00
parent 6100738db6
commit 43ffb3da5a
12 changed files with 535 additions and 14 deletions

19
e2e/debug.mjs Normal file
View File

@@ -0,0 +1,19 @@
import { chromium } from '@playwright/test'
import { readFile } from 'fs/promises'
const state = JSON.parse(await readFile('.auth/state.json', 'utf8'))
const browser = await chromium.launch()
const context = await browser.newContext({ storageState: state })
const page = await context.newPage()
page.on('console', msg => console.log('[console]', msg.type(), msg.text()))
page.on('pageerror', err => console.log('[pageerror]', err.message, '\n', err.stack))
await page.goto('http://localhost:5173/chores/create')
await page.getByTestId('chore-name-input').fill('Debug Chore ' + Date.now())
await page.getByLabel('Repeat this task').click()
await page.getByLabel('Daily').click()
await page.getByRole('button', { name: 'Create' }).click()
await page.waitForURL('**/chores', { timeout: 15000 })
await page.waitForTimeout(2000)
await browser.close()