From cc13b67459d4b09571d9004ddeec517f0237c26e Mon Sep 17 00:00:00 2001 From: "ala'n (Alexey Stsefanovich)" Date: Fri, 9 Feb 2024 22:00:43 +0100 Subject: [PATCH] chore(e2e): fix typos in time dimensions of report --- e2e/reporters/printers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/reporters/printers.js b/e2e/reporters/printers.js index 27140a342..3a3276050 100644 --- a/e2e/reporters/printers.js +++ b/e2e/reporters/printers.js @@ -3,7 +3,7 @@ const printSummary = (stats) => { text += '| :clock10: Start time | :hourglass: Duration |\n'; text += '| --- | ---: |\n'; - text += `|${stats.startTimeStr}|${stats.totalTimeStr}s|\n`; + text += `|${stats.startTimeStr}|${stats.totalTimeStr}|\n`; text += '\n'; text += '| | :white_check_mark: Passed | :x: Failed | :construction: Todo | :white_circle: Total |\n'; @@ -30,7 +30,7 @@ function printFiles(fileStat, basePath) { text += 'TestStatusTime\n'; for (const test of file.tests) { const statusTest = test.status === 'passed' ? ':white_check_mark:' : ':x:'; - const timeStr = test.time < 1 ? `${test.time * 1000}ms` : `${test.time}s`; + const timeStr = test.time < 1000 ? `${test.time}ms` : `${test.time / 1000}s`; text += `${test.name}:${test.title}${statusTest}${timeStr}\n`;