feat: no duration
This commit is contained in:
@@ -80,16 +80,12 @@ async function executeRun(fileName: string, runId: string) {
|
|||||||
const interpretationInfo = await browser.interpreter.InterpretRecording(
|
const interpretationInfo = await browser.interpreter.InterpretRecording(
|
||||||
parsedRecording.recording, currentPage, parsedRun.interpreterSettings);
|
parsedRecording.recording, currentPage, parsedRun.interpreterSettings);
|
||||||
|
|
||||||
const duration = Math.round((new Date().getTime() - new Date(parsedRun.startedAt).getTime()) / 1000);
|
|
||||||
const durString = duration < 60 ? `${duration} s` : `${Math.floor(duration / 60)} m ${duration % 60} s`;
|
|
||||||
|
|
||||||
await destroyRemoteBrowser(parsedRun.browserId);
|
await destroyRemoteBrowser(parsedRun.browserId);
|
||||||
|
|
||||||
const updated_run_meta = {
|
const updated_run_meta = {
|
||||||
...parsedRun,
|
...parsedRun,
|
||||||
status: 'success',
|
status: 'success',
|
||||||
finishedAt: new Date().toLocaleString(),
|
finishedAt: new Date().toLocaleString(),
|
||||||
duration: durString,
|
|
||||||
browserId: parsedRun.browserId,
|
browserId: parsedRun.browserId,
|
||||||
log: interpretationInfo.log.join('\n'),
|
log: interpretationInfo.log.join('\n'),
|
||||||
serializableOutput: interpretationInfo.serializableOutput,
|
serializableOutput: interpretationInfo.serializableOutput,
|
||||||
|
|||||||
Reference in New Issue
Block a user