fix tests
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user