pluginMarketStartupCredentials.test.ts 845 B

1234567891011121314151617181920212223
  1. import { expect, it } from "vitest";
  2. import { createE2EStartupCredentialSeed } from "./e2e/helpers/e2e-startup-credentials.js";
  3. it.each([
  4. "plugin-management-discovery-presentation.test.ts",
  5. "plugin-management-ui-market.test.ts",
  6. "conversation-session-plugin-marketplace-installed-roundtrip.test.ts",
  7. "plugin-store-auto-refresh-throttled.test.ts",
  8. "plugin-store-auto-refresh-on-enter.test.ts",
  9. ])("插件市场回放 %s 不注入真实账号控制面无效的身份", (spec) => {
  10. expect(
  11. createE2EStartupCredentialSeed({
  12. specs: [spec],
  13. legacyAuthToken: "fake-auth-token",
  14. restoredOAuthCredentials: {
  15. "oauth:active_provider": "zai",
  16. "oauth:zai:access_token": "fake-access-token",
  17. "oauth:zai:user_info": "{}",
  18. zcodejwttoken: "fake-zcode-jwt",
  19. },
  20. }),
  21. ).toEqual({});
  22. });