skopix 2.0.93 → 2.0.94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1482,11 +1482,17 @@ export async function dashboardCommand(options) {
|
|
|
1482
1482
|
replayAgent.currentJob = { type: 'replay', runId, testName: test.name };
|
|
1483
1483
|
broadcastAgentList();
|
|
1484
1484
|
sendToAgent(replayAgent, { type: 'replay', runId, test, setupTest, env: userEnv || {} });
|
|
1485
|
+
if (teamMode && currentUser) {
|
|
1486
|
+
teamMode.db.logAudit({ userId: currentUser.id, action: 'test.run', targetType: 'test', targetId: test.id, metadata: { name: test.name, scope: test.scope, agent: replayAgent.name } });
|
|
1487
|
+
}
|
|
1485
1488
|
sendJSON(res, 200, { runId, agent: { id: replayAgent.id, name: replayAgent.name } });
|
|
1486
1489
|
return;
|
|
1487
1490
|
}
|
|
1488
1491
|
|
|
1489
1492
|
const runId = startReplay(test, setupTest, activeRuns, reportsDir, currentUser, { ...process.env, ...(userEnv || {}) });
|
|
1493
|
+
if (teamMode && currentUser) {
|
|
1494
|
+
teamMode.db.logAudit({ userId: currentUser.id, action: 'test.run', targetType: 'test', targetId: test.id, metadata: { name: test.name, scope: test.scope } });
|
|
1495
|
+
}
|
|
1490
1496
|
sendJSON(res, 200, { runId });
|
|
1491
1497
|
return;
|
|
1492
1498
|
}
|
package/package.json
CHANGED