fix(api): resolve yearbooks by generation server id

This commit is contained in:
2026-07-31 14:10:28 +00:00
parent 02515303fd
commit 7f12b072b3
3 changed files with 110 additions and 37 deletions
@@ -259,6 +259,7 @@ const installAuthenticatedGameFixture = async (page: Page): Promise<void> => {
);
await page.route('**/che/api/trpc/**', async (route) => {
await fulfillOperations(route, (operation) => {
if (operation === 'auth.status') return { userId: 'frontend-legacy-fixture-user' };
if (operation === 'lobby.info') {
return { ...fixture.game.lobby, myGeneral: fixture.game.session.general };
}