test(e2e): fix auth specs for character routes
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
import type { Page } from "@playwright/test";
|
||||
|
||||
import { apiEnvelope } from "../data/common";
|
||||
import { chatCharactersResponse } from "../data/character";
|
||||
|
||||
export async function registerCharacterMocks(page: Page) {
|
||||
await page.route("**/api/characters**", async (route) => {
|
||||
await route.fulfill({ json: apiEnvelope(chatCharactersResponse) });
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user