관리자 승인과 사용자 OAuth 증명을 분리하고 기존 Kakao stable ID를 영구 폐기한다. 로그인 ID와 닉네임 변경은 현재 장수에 revision 기반으로 투영하며 과거 기록은 당시 이름으로 보존한다.
52 lines
1.9 KiB
JavaScript
52 lines
1.9 KiB
JavaScript
import { dirname, resolve } from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
import { defineConfig, devices } from '@playwright/test';
|
|
|
|
const repositoryRoot = resolve(dirname(fileURLToPath(import.meta.url)), '../../..');
|
|
const port = Number(process.env.PLAYWRIGHT_GATEWAY_FRONTEND_PORT ?? 15130);
|
|
|
|
export default defineConfig({
|
|
testDir: '.',
|
|
testMatch: [
|
|
'server-operations.spec.ts',
|
|
'admin-runtime-actions.spec.ts',
|
|
'admin-account-controls.spec.ts',
|
|
'account-kakao-replacement.spec.ts',
|
|
'lobby-admin-navigation.spec.ts',
|
|
'lobby-game-auth.spec.ts',
|
|
'logout.spec.ts',
|
|
'account-icon-sync.spec.ts',
|
|
'web-push-settings.spec.ts',
|
|
'legacy-log-html.spec.ts',
|
|
'gateway-notice-html.spec.ts',
|
|
'kakao-otp.spec.ts',
|
|
'kakao-account-recovery.spec.ts',
|
|
'public-map-tabs.spec.ts',
|
|
'runtime-navigation.spec.ts',
|
|
'open-suggestion.spec.ts',
|
|
],
|
|
fullyParallel: false,
|
|
workers: 1,
|
|
timeout: 30_000,
|
|
expect: {
|
|
timeout: 5_000,
|
|
},
|
|
reporter: [['list']],
|
|
outputDir: resolve(repositoryRoot, 'test-results/server-operations'),
|
|
use: {
|
|
baseURL: `http://127.0.0.1:${port}/gateway/`,
|
|
...devices['Desktop Chrome'],
|
|
deviceScaleFactor: 1,
|
|
colorScheme: 'dark',
|
|
trace: 'retain-on-failure',
|
|
screenshot: 'only-on-failure',
|
|
},
|
|
webServer: {
|
|
command: `export VITE_APP_BASE_PATH=/gateway VITE_GATEWAY_API_URL=/gateway/api/trpc VITE_GAME_WEB_URL_TEMPLATE='/{profile}/' VITE_GAME_API_URL_TEMPLATE='/{profile}/api/trpc'; pnpm --filter @sammo-ts/gateway-frontend build && pnpm --filter @sammo-ts/gateway-frontend preview --host 127.0.0.1 --port ${port}`,
|
|
cwd: repositoryRoot,
|
|
url: `http://127.0.0.1:${port}/gateway/`,
|
|
reuseExistingServer: false,
|
|
timeout: 120_000,
|
|
},
|
|
});
|