mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-05-05 19:19:35 +00:00
a3e57efb31
- Introduced `TestCaseFiles` interface to manage test case files in JSON format. - Added `load_cases` function to load test cases from JSON files in the Lua test runner. - Implemented parameterized test helpers (`it_each`, `fit_each`, `xit_each`) for more flexible test case execution. - Updated existing tests in `ui_login`, `ui_permissions`, `user_manager`, and `workflow_editor` to utilize JSON-based test cases for better maintainability and readability. - Added new components and scripts for the notification center, including a summary card with severity-based notifications. - Enhanced metadata and manifest files to include new components and scripts. - Introduced comprehensive test cases for user actions, permission checks, and workflow statuses.
26 lines
1.2 KiB
JSON
26 lines
1.2 KiB
JSON
{
|
|
"status_constants": [
|
|
{ "name": "PENDING", "value": "pending" },
|
|
{ "name": "RUNNING", "value": "running" },
|
|
{ "name": "SUCCESS", "value": "success" },
|
|
{ "name": "FAILED", "value": "failed" },
|
|
{ "name": "CANCELLED", "value": "cancelled" }
|
|
],
|
|
"render_badge": [
|
|
{ "status": "pending", "color": "default", "desc": "pending status" },
|
|
{ "status": "running", "color": "info", "desc": "running status" },
|
|
{ "status": "success", "color": "success", "desc": "success status" },
|
|
{ "status": "failed", "color": "error", "desc": "failed status" },
|
|
{ "status": "cancelled", "color": "warning", "desc": "cancelled status" },
|
|
{ "status": "unknown", "color": "default", "desc": "unknown status" }
|
|
],
|
|
"render_progress": [
|
|
{ "completed": 0, "total": 10, "percent": 0, "label": "0/10" },
|
|
{ "completed": 5, "total": 10, "percent": 50, "label": "5/10" },
|
|
{ "completed": 10, "total": 10, "percent": 100, "label": "10/10" },
|
|
{ "completed": 3, "total": 4, "percent": 75, "label": "3/4" },
|
|
{ "completed": 1, "total": 3, "percent": 33.333333333333, "label": "1/3" },
|
|
{ "completed": 0, "total": 0, "percent": 0, "label": "0/0" }
|
|
]
|
|
}
|