Mega push vol 5, working on messaging now

This commit is contained in:
AlacrisDevs
2026-02-07 01:31:55 +02:00
parent d8bbfd9dc3
commit e55881b38b
77 changed files with 8478 additions and 1554 deletions

18
tests/e2e/auth.setup.ts Normal file
View File

@@ -0,0 +1,18 @@
import { test as setup, expect } from '@playwright/test';
import { TEST_EMAIL, TEST_PASSWORD, TEST_ORG_SLUG } from './helpers';
const authFile = 'tests/e2e/.auth/user.json';
setup('authenticate', async ({ page }) => {
// networkidle ensures Svelte 5 hydration completes (event delegation attached)
await page.goto('/login', { waitUntil: 'networkidle' });
await page.fill('input[type="email"]', TEST_EMAIL);
await page.fill('input[type="password"]', TEST_PASSWORD);
await page.click('button[type="submit"]');
// After login, the app redirects to "/" (org selector)
await page.waitForURL('/', { timeout: 30000 });
// Verify we see the org selector
await expect(page.getByRole('link', { name: /root-test/i }).first()).toBeVisible({ timeout: 10000 });
// Save auth state
await page.context().storageState({ path: authFile });
});