Add E2E tests for my-account, account info modal, and compare tab

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 20:52:38 +08:00
parent 1a4062487e
commit 6641bc1f8f
7 changed files with 217 additions and 31 deletions

View File

@@ -1,4 +1,44 @@
{
"process_map": {
"vertices": [
{
"id": 0,
"type": "event",
"event_type": "start",
"label": "start"
},
{
"id": 1,
"type": "activity",
"label": "Task A",
"freq": { "total": 150, "rel_freq": 1.0, "average": 150, "median": 150, "max": 150, "min": 150, "cases": 150 },
"duration": { "total": 5400, "rel_duration": 0.6, "average": 36, "median": 30, "max": 60, "min": 10 }
},
{
"id": 2,
"type": "activity",
"label": "Task B",
"freq": { "total": 120, "rel_freq": 0.8, "average": 120, "median": 120, "max": 120, "min": 120, "cases": 120 },
"duration": { "total": 2700, "rel_duration": 0.3, "average": 22.5, "median": 20, "max": 45, "min": 5 }
},
{
"id": 3,
"type": "event",
"event_type": "end",
"label": "end"
}
],
"edges": [
{ "tail": 0, "head": 1, "freq": { "total": 150, "rel_freq": 1.0, "average": 150, "median": 150, "max": 150, "min": 150 }, "duration": null },
{ "tail": 1, "head": 2, "freq": { "total": 120, "rel_freq": 0.8, "average": 120, "median": 120, "max": 120, "min": 120 }, "duration": { "total": 1800, "rel_duration": 0.5, "average": 15, "median": 10, "max": 30, "min": 5 } },
{ "tail": 2, "head": 3, "freq": { "total": 120, "rel_freq": 0.8, "average": 120, "median": 120, "max": 120, "min": 120 }, "duration": null },
{ "tail": 1, "head": 3, "freq": { "total": 30, "rel_freq": 0.2, "average": 30, "median": 30, "max": 30, "min": 30 }, "duration": null }
]
},
"bpmn": {
"vertices": [],
"edges": []
},
"stats": {
"cases": { "count": 150, "total": 200, "ratio": 0.75 },
"traces": { "count": 45, "total": 60, "ratio": 0.75 },
@@ -13,18 +53,5 @@
"median": 86400
}
},
"graph": {
"nodes": [
{ "id": "start", "label": "Start", "type": "start" },
{ "id": "task_a", "label": "Task A", "type": "task" },
{ "id": "task_b", "label": "Task B", "type": "task" },
{ "id": "end", "label": "End", "type": "end" }
],
"edges": [
{ "source": "start", "target": "task_a", "count": 150 },
{ "source": "task_a", "target": "task_b", "count": 120 },
{ "source": "task_b", "target": "end", "count": 120 },
{ "source": "task_a", "target": "end", "count": 30 }
]
}
"insights": []
}

View File

@@ -1,16 +1,14 @@
{
"traces": [
{
"id": "trace-001",
"case_id": "CASE-001",
"count": 50,
"activities": ["Task A", "Task B", "End"]
},
{
"id": "trace-002",
"case_id": "CASE-002",
"count": 30,
"activities": ["Task A", "End"]
}
]
}
[
{
"id": 1,
"case_id": "CASE-001",
"count": 50,
"activities": ["Task A", "Task B", "End"]
},
{
"id": 2,
"case_id": "CASE-002",
"count": 30,
"activities": ["Task A", "End"]
}
]

View File

@@ -7,5 +7,8 @@
"has_data": true,
"roles": [
{ "code": "admin", "name": "Administrator" }
]
],
"detail": {
"visits": 42
}
}