test(e2e): match character mock requests reliably

This commit is contained in:
2026-07-20 17:22:29 +08:00
parent 8580042c26
commit 10132652c7
+1 -1
View File
@@ -4,7 +4,7 @@ import { apiEnvelope } from "../data/common";
import { chatCharactersResponse } from "../data/character";
export async function registerCharacterMocks(page: Page) {
await page.route("**/api/characters**", async (route) => {
await page.route(/\/api\/characters(?:\?.*)?$/, async (route) => {
await route.fulfill({ json: apiEnvelope(chatCharactersResponse) });
});
}