This commit is contained in:
2026-08-25 20:50:01 +08:00
parent f6d4ed6c3c
commit 6572771227
12 changed files with 341 additions and 86 deletions
+5
View File
@@ -31,7 +31,12 @@ test('login uses the real auth endpoint and relaunches to the modular workbench'
assert.match(auth, /\/auth\/login/)
assert.match(login, /loginRequest\(userId, this\.form\.password\)/)
assert.match(login, /signInWithTokens\(tokens\)/)
assert.match(login, /userId: 'platform_admin', password: 'ChangeMe123!'/)
assert.match(login, /记住账号/)
assert.match(login, /loadLoginPreference\(\)/)
assert.match(login, /saveLoginPreference\(this\.rememberAccount, userId\)/)
assert.match(session, /pda-auth-session/)
assert.match(session, /pda-login-account-preference/)
assert.match(session, /claims\.app_code !== 'PLATFORM'/)
assert.match(runtime, /import\.meta\.env\.VITE_API_BASE_URL/)
assert.doesNotMatch(runtime, /typeof\s+import\.meta/)