From c5c15d1c1909a3cc5b04de6ee8eba15851d81f0a Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 31 Oct 2026 04:04:07 +0000 Subject: [PATCH] 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> --- tests/e2e/ui/globalSetup.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/e2e/ui/globalSetup.ts b/tests/e2e/ui/globalSetup.ts index a0453e6992d..54aa385c0d4 100644 --- a/tests/e2e/ui/globalSetup.ts +++ b/tests/e2e/ui/globalSetup.ts @@ -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];