diff --git a/playwright.config.ts b/playwright.config.ts index 6e8d368..3529dc7 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -5,20 +5,13 @@ export default defineConfig({ fullyParallel: true, forbidOnly: !!process.env.CI, retries: process.env.CI ? 2 : 0, - workers: 1, + workers: process.env.CI ? 1 : undefined, reporter: 'html', use: { baseURL: 'http://localhost:3000', trace: 'on-first-retry', - launchOptions: { - headless: false - } - }, - webServer: { - command: 'rm -f server/prisma/prisma/dev.db && npm run migrate:deploy --prefix server && npm run dev:full & wait-on http-get://localhost:3000', - url: 'http://localhost:3000', - reuseExistingServer: !process.env.CI, }, + projects: [ { name: 'chromium', diff --git a/server/src/index.ts b/server/src/index.ts index 212991d..b513f08 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -21,7 +21,7 @@ const app = express(); // ------------------------------------------------------------------- async function ensureAdminUser() { const adminEmail = process.env.ADMIN_EMAIL || 'admin@gymflow.ai'; - const adminPassword = process.env.ADMIN_PASSWORD || 'admin1234'; + const adminPassword = process.env.ADMIN_PASSWORD || 'admin123'; // Use the singleton prisma client const prisma = (await import('./lib/prisma')).default;