Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Frontend/e2e/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { type Page, expect } from '@playwright/test';

/** Demo credentials from seed data */
/** Demo credentials — use deployed Supabase credentials when E2E_BASE_URL is set */
export const DEMO_USER = {
email: '[email protected]',
password: 'demo123',
email: process.env.E2E_BASE_URL ? '[email protected]' : '[email protected]',
password: process.env.E2E_BASE_URL ? 'TaskPulse2024' : 'demo123',
name: 'Admin',
};

Expand Down
3 changes: 2 additions & 1 deletion Frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"preview": "vite preview",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:headed": "playwright test --headed"
"test:e2e:headed": "playwright test --headed",
"test:e2e:deployed": "E2E_BASE_URL=https://relaxed-gates.vercel.app playwright test"
},
"dependencies": {
"@gsap/react": "^2.1.2",
Expand Down
4 changes: 2 additions & 2 deletions Frontend/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default defineConfig({
expect: { timeout: 10_000 },

use: {
baseURL: 'http://localhost:5173',
baseURL: process.env.E2E_BASE_URL || 'http://localhost:5173',
trace: 'on-first-retry',
screenshot: 'only-on-failure',
video: 'retain-on-failure',
Expand Down Expand Up @@ -47,7 +47,7 @@ export default defineConfig({
},
],

webServer: {
webServer: process.env.E2E_BASE_URL ? undefined : {
command: 'npm run dev',
url: 'http://localhost:5173',
reuseExistingServer: true,
Expand Down
Loading
Loading