test(e2e): restore authenticated parity fixtures
This commit is contained in:
@@ -140,6 +140,7 @@ const installGatewayMapFixture = async (page: Page) => {
|
||||
});
|
||||
await page.route('**/che/api/trpc/**', async (route) => {
|
||||
const results = operationNames(route).map((operation) => {
|
||||
if (operation === 'auth.status') return response({ userId: 'frontend-parity-user' });
|
||||
if (operation === 'lobby.info') return response(fixture.game.lobby);
|
||||
if (operation === 'public.getMapLayout') return response(fixture.game.mapLayout);
|
||||
if (operation === 'public.getCachedMap') {
|
||||
@@ -162,6 +163,7 @@ const installMainFixture = async (page: Page, failRecords = false) => {
|
||||
);
|
||||
await page.route('**/che/api/trpc/**', async (route) => {
|
||||
const results = operationNames(route).map((operation) => {
|
||||
if (operation === 'auth.status') return response({ userId: 'frontend-parity-user' });
|
||||
if (operation === 'lobby.info') {
|
||||
return response({ ...fixture.game.lobby, myGeneral: fixture.game.session.general });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user