test(e2e): honor configured game base paths

This commit is contained in:
2026-07-31 18:08:04 +00:00
parent c3c1ddc0cf
commit 132baf21cc
13 changed files with 88 additions and 72 deletions
+6
View File
@@ -0,0 +1,6 @@
const normalizedBasePath = (process.env.PLAYWRIGHT_GAME_BASE_PATH ?? 'che').replace(/^\/+|\/+$/g, '');
export const gameBasePath = `/${normalizedBasePath}`;
export const gameProfile = process.env.PLAYWRIGHT_GAME_PROFILE ?? 'che:default';
export const gameTrpcRoute = `**${gameBasePath}/api/trpc/**`;
export const gamePath = (suffix = ''): string => `${gameBasePath}${suffix.startsWith('/') ? suffix : `/${suffix}`}`;