mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-07-28 00:48:07 +00:00
* fix(title): avoid default LLM call before stream end * fix(title): keep default fallback local * fix(title): harden fallback and replay e2e * docs(title): align fallback title behavior
19 lines
614 B
TypeScript
19 lines
614 B
TypeScript
import { expect, test } from "@playwright/test";
|
|
|
|
import { AUTH_DISABLED_USER } from "../../src/core/auth/auth-disabled-user";
|
|
|
|
const APP =
|
|
process.env.E2E_APP_URL ??
|
|
`http://localhost:${process.env.E2E_FRONTEND_PORT ?? "3000"}`;
|
|
|
|
test.describe("auth-disabled contract (real backend)", () => {
|
|
test("gateway /auth/me returns the frontend synthetic user without a cookie", async ({
|
|
context,
|
|
}) => {
|
|
const resp = await context.request.get(`${APP}/api/v1/auth/me`);
|
|
|
|
expect(resp.status(), await resp.text()).toBe(200);
|
|
await expect(resp.json()).resolves.toEqual(AUTH_DISABLED_USER);
|
|
});
|
|
});
|