test(ui): dedicated coverage for seven console feature areas - #18
Merged
Merged
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 testCoverage (gates remain statements/lines/functions/branches ≥ 95%):
Per-area dedicated files (0 failures)
/Dashboard.vueui/src/pages/Dashboard.test.ts(new)/databasesDatabases.vueui/src/pages/Databases.test.ts(new)/s3S3Manager.vueui/src/pages/S3Manager.test.ts/gofunctionsGoFunctions.vueui/src/pages/GoFunctions.test.ts/cron-jobsCronJobs.vueui/src/pages/CronJobs.test.ts/agentsAgentManager.vueui/src/pages/AgentManager.test.ts/logsLogs.vueui/src/pages/Logs.test.tsRelated databases coverage (also 100% pass):
ui/src/components/databases/CollectionPanel.test.ts— 2 / 2ui/src/components/modal/SqlWorkModal.test.ts— 3 / 3ui/src/components/modal/DocumentListModal.test.ts— 3 / 3Router 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 inpages-coverage.test.ts/interactions.test.tsis left in place.Test plan
cd ui && yarn test— 187 passed, 0 failed, coverage above 95% on all metrics