Skip to content

test(ui): dedicated coverage for seven console feature areas - #18

Merged
linkxzhou merged 1 commit into
mainfrom
cursor/ui-feature-area-tests-57b9
Sep 21, 2026
Merged

linkxzhou merged 1 commit into
mainfrom
cursor/ui-feature-area-tests-57b9

Conversation

@linkxzhou

@linkxzhou linkxzhou commented Sep 21, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds/strengthens dedicated frontend tests for the seven SimpleBase console feature areas so each has a clear Vitest file that passes at 100%. HTTP/network is mocked; no real COS/backend is required. Coverage thresholds stay at 95% (not lowered).

Worked from latest main. Product code is unchanged (tests only).

Overall yarn test

cd ui && yarn test   # vitest run --coverage

Test Files  61 passed (61)
Tests       187 passed (187)
Failures    0

Coverage (gates remain statements/lines/functions/branches ≥ 95%):

Metric Result
Statements 99.61% (7500/7529)
Branches 96.76% (2810/2904)
Functions 97.83% (541/553)
Lines 99.61% (7500/7529)

Per-area dedicated files (0 failures)

# Area Route / page Test file Pass
1 Monitoring dashboard / 监控大盘 / Dashboard.vue ui/src/pages/Dashboard.test.ts (new) 6 / 6
2 Database management / 数据库管理 /databases Databases.vue ui/src/pages/Databases.test.ts (new) 9 / 9
3 S3 object storage / S3 对象存储 /s3 S3Manager.vue ui/src/pages/S3Manager.test.ts 7 / 7
4 Cloud functions / 云函数 /gofunctions GoFunctions.vue ui/src/pages/GoFunctions.test.ts 5 / 5
5 Scheduled tasks / 定时任务 /cron-jobs CronJobs.vue ui/src/pages/CronJobs.test.ts 5 / 5
6 Cloud Agent / 云 Agent /agents AgentManager.vue ui/src/pages/AgentManager.test.ts 7 / 7
7 Log management / 日志管理 /logs Logs.vue ui/src/pages/Logs.test.ts 5 / 5

Related databases coverage (also 100% pass):

  • ui/src/components/databases/CollectionPanel.test.ts — 2 / 2
  • ui/src/components/modal/SqlWorkModal.test.ts — 3 / 3
  • ui/src/components/modal/DocumentListModal.test.ts — 3 / 3

Router titles for all seven areas: ui/src/router/index.test.ts (3 / 3).

Gaps

None of the seven modules are stubs. All seven console pages exist and are exercised with mocked api.*. Older smoke coverage in pages-coverage.test.ts / interactions.test.ts is left in place.

Test plan

  • cd ui && yarn test — 187 passed, 0 failed, coverage above 95% on all metrics
  • Dedicated files for all 7 areas report 0 failures
Open in Web Open in Cursor 

Cover monitoring dashboard, databases (SQL/collections/docs), S3, cloud
functions, cron jobs, cloud agents, and logs with page-level tests that
mock HTTP. Strengthen related collection/SQL/document and router title
assertions without lowering the 95% coverage gates.

Co-authored-by: linkxzhou <zhoulv2000@163.com>
@vercel

vercel Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lessdb Error Error Sep 21, 2026 9:46am UTC

@linkxzhou
linkxzhou marked this pull request as ready for review September 21, 2026 09:49
@linkxzhou
linkxzhou merged commit 16ca6f7 into main Sep 21, 2026
2 of 3 checks passed

This branch had an error being deployed

1 failed deployment
Preview — 420efdff Deployed Sep 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants