fix(e2e): keep the api client and master key in UI global setup

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
ryan 2026-10-31 04:04:07 +00:00
parent 0e71513813
commit c5c15d1c19

View file

@ -19,6 +19,8 @@ async function globalSetup() {
// keeps the default "." a no-op.
fs.mkdirSync(ARTIFACT_DIR, { recursive: true });
const masterKey = getMasterKey();
const api = await request.newContext();
const roles = [Role.ProxyAdmin, ...Object.values(Role).filter((role) => role !== Role.ProxyAdmin)];
for (const role of roles) {
const { email, password, seedApiRole } = users[role];