feat: add support for running status in account run history and UI
- Enhanced account run history to include 'running' status with appropriate translations and summaries. - Updated logging status to handle new error message format. - Introduced new properties for task progress in create-plus-checkout step. - Modified fill-plus-checkout step to handle additional error details. - Updated account records manager to display running status and summary correctly. - Added CSS styles for running status in account records. - Implemented logic to refresh account run history based on auto-run state changes. - Added tests for running status and idle log restart functionality in auto-run steps. - Improved account records manager tests to validate running state display and failure details.
This commit is contained in:
@@ -126,6 +126,20 @@ test('account run history helper upgrades old records, keeps stopped items and s
|
||||
assert.equal(genericStoppedRecord.failureLabel, '流程已停止');
|
||||
assert.equal(genericStoppedRecord.failedStep, null);
|
||||
|
||||
const runningRecord = helpers.buildAccountRunHistoryRecord({
|
||||
email: 'run@b.com',
|
||||
password: 'z',
|
||||
autoRunning: true,
|
||||
autoRunCurrentRun: 1,
|
||||
autoRunTotalRuns: 2,
|
||||
autoRunAttemptRun: 1,
|
||||
}, 'running', '正在运行');
|
||||
assert.equal(runningRecord.finalStatus, 'running');
|
||||
assert.equal(runningRecord.failureLabel, '正在运行');
|
||||
assert.equal(runningRecord.failureDetail, '');
|
||||
assert.equal(runningRecord.failedStep, null);
|
||||
assert.equal(runningRecord.source, 'auto');
|
||||
|
||||
const normalizedStoppedRecord = helpers.normalizeAccountRunHistoryRecord({
|
||||
recordId: 'legacy-stop@example.com',
|
||||
email: 'legacy-stop@example.com',
|
||||
@@ -471,6 +485,7 @@ test('account run history helper clears persisted records and syncs full snapsho
|
||||
assert.deepStrictEqual(payload.summary, {
|
||||
total: 1,
|
||||
success: 0,
|
||||
running: 0,
|
||||
failed: 1,
|
||||
stopped: 0,
|
||||
retryTotal: 1,
|
||||
@@ -486,6 +501,7 @@ test('account run history helper clears persisted records and syncs full snapsho
|
||||
summary: {
|
||||
total: 0,
|
||||
success: 0,
|
||||
running: 0,
|
||||
failed: 0,
|
||||
stopped: 0,
|
||||
retryTotal: 0,
|
||||
@@ -586,6 +602,7 @@ test('account run history helper deletes selected records and syncs remaining sn
|
||||
summary: {
|
||||
total: 1,
|
||||
success: 1,
|
||||
running: 0,
|
||||
failed: 0,
|
||||
stopped: 0,
|
||||
retryTotal: 0,
|
||||
|
||||
Reference in New Issue
Block a user