Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram). AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan. Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
38 lines
1.1 KiB
TypeScript
38 lines
1.1 KiB
TypeScript
/**
|
|
* Test data constants used across E2E tests.
|
|
*
|
|
* In a real CI environment these would come from environment variables or
|
|
* a seeded test database. The values here are safe defaults for local dev.
|
|
*/
|
|
|
|
/** Unique suffix to avoid collisions between parallel test runs */
|
|
const RUN_ID = Date.now().toString(36)
|
|
|
|
export const TEST_USER = {
|
|
username: `testuser_${RUN_ID}`,
|
|
email: `testuser_${RUN_ID}@gitgram-e2e.test`,
|
|
password: 'Test1234!@#$',
|
|
fullName: 'E2E Test User',
|
|
} as const
|
|
|
|
export const TEST_USER_LOGIN = {
|
|
/** Pre-seeded user for login tests (must exist in the test database) */
|
|
email: process.env.E2E_USER_EMAIL || 'e2e@gitgram.test',
|
|
password: process.env.E2E_USER_PASSWORD || 'TestPassword123!',
|
|
} as const
|
|
|
|
export const TEST_POST = {
|
|
content: `E2E test post ${RUN_ID} -- Hello from Playwright!`,
|
|
comment: `E2E test comment ${RUN_ID}`,
|
|
} as const
|
|
|
|
export const TEST_SEARCH = {
|
|
userQuery: 'testuser',
|
|
repoQuery: 'react',
|
|
postQuery: 'hello',
|
|
hashtagQuery: '#javascript',
|
|
} as const
|
|
|
|
export const API_BASE_URL =
|
|
process.env.NEXT_PUBLIC_API_URL || 'http://localhost:4000/api'
|