fix tests

This commit is contained in:
2026-01-03 22:28:12 +01:00
parent bc7cb2e20a
commit 5308d3ee61
10 changed files with 26 additions and 865 deletions

View File

@@ -33,11 +33,12 @@ export class WebsiteAuthManager {
const token = await WebsiteAuthManager.loginViaApi(request, apiBaseUrl, role);
// Critical: the website (localhost:3000) must receive `gp_session` so middleware can forward it.
// Playwright cookie format - either url OR domain+path
await context.addCookies([
{
name: 'gp_session',
value: token,
url: baseURL,
domain: 'localhost',
path: '/',
httpOnly: true,
sameSite: 'Lax',