add playwright e2e tests for onboarding, contact tracker
- install playwright, configure for chromium with vite dev server - add onboarding flow test: redirect, form fill, navigation to prozess - add contact tracker test: create contact, verify in list - fix onboarding form navigating to /onboarding instead of /prozess - fix date rendering crash in contact list (cast datum to text) - exclude @electric-sql/pglite from vite optimizeDeps (WASM bundle) - add test-results/, playwright-report/ to .gitignore Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -25,7 +25,7 @@ export function useTherapeutenListe() {
|
||||
return useDbQuery<TherapeutMitKontakte>(`
|
||||
SELECT
|
||||
t.id, t.name, t.stadt, t.therapieform,
|
||||
(SELECT k.datum FROM kontakt k WHERE k.therapeut_id = t.id ORDER BY k.datum DESC LIMIT 1) as letzter_kontakt,
|
||||
(SELECT k.datum::text FROM kontakt k WHERE k.therapeut_id = t.id ORDER BY k.datum DESC LIMIT 1) as letzter_kontakt,
|
||||
(SELECT k.ergebnis FROM kontakt k WHERE k.therapeut_id = t.id ORDER BY k.datum DESC LIMIT 1) as letztes_ergebnis,
|
||||
(SELECT COUNT(*) FROM kontakt k WHERE k.therapeut_id = t.id) as kontakte_gesamt
|
||||
FROM therapeut t
|
||||
|
||||
@@ -30,7 +30,7 @@ export function OnboardingForm() {
|
||||
value.aktueller_schritt,
|
||||
],
|
||||
);
|
||||
navigate({ to: "/onboarding" });
|
||||
navigate({ to: "/prozess" });
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user