coding-plan-upgrade-personal-system-busy.test.ts 838 B

1234567891011121314151617181920212223
  1. import { clearAppData } from "./helpers/desktop-app.js";
  2. import {
  3. openBigModelCodingPlanPersonalUpgradePanel,
  4. } from "./helpers/coding-plan-upgrade.js";
  5. import {
  6. waitForCodingPlanWebviewBodyTextIncludes,
  7. waitForCodingPlanWebviewDisplayed,
  8. } from "./helpers/coding-plan-upgrade-webview.js";
  9. describe("BigModel Coding Plan 升级页个人套餐系统繁忙 E2E", () => {
  10. after(async () => {
  11. await browser.electron.restoreAllMocks();
  12. await clearAppData();
  13. });
  14. it("无 Coding 权益账号进入升级页且套餐接口系统繁忙时,个人套餐按钮显示订阅繁忙", async function () {
  15. this.timeout(120000);
  16. await openBigModelCodingPlanPersonalUpgradePanel();
  17. await waitForCodingPlanWebviewDisplayed();
  18. await waitForCodingPlanWebviewBodyTextIncludes(["订阅繁忙", "System busy"]);
  19. });
  20. });