Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

test(e2e): sanitize saved auth state

Gus16c1ca4606aa
diff --git a/src/web/src/test/e2e-ui/_setup/auth.ts b/src/web/src/test/e2e-ui/_setup/auth.ts
index 8612f95fb..91262fcab 100644
--- a/src/web/src/test/e2e-ui/_setup/auth.ts
+++ b/src/web/src/test/e2e-ui/_setup/auth.ts
@@ -40,6 +40,7 @@ export async function loginAndSaveState(
}
const me = (await meRes.json()) as { userId: string }
+ await context.clearCookies({ name: /^(?:is_new_signup|is_sign_in)$/ })
await context.storageState({ path: storageStatePath })
return { key, email, name, userId: me.userId, storageState: storageStatePath }
} finally {