diff --git a/lib/reporter/reporters/html.js b/lib/reporter/reporters/html.js
index 609b6d53f9..acd070c60a 100644
--- a/lib/reporter/reporters/html.js
+++ b/lib/reporter/reporters/html.js
@@ -97,7 +97,7 @@ class HtmlReporter extends BaseReporter {
this.environments[testEnv].stats.failed += failedCount;
this.environments[testEnv].stats.skipped += module.skippedCount;
this.environments[testEnv].stats.total += passedCount + failedCount + module.skippedCount;
- this.environments[testEnv].stats.time = this.environments[testEnv].stats.time || module.timeMs;
+ this.environments[testEnv].stats.time += this.environments[testEnv].stats.time || module.timeMs;
this.environments[testEnv].metadata.platformName = this.environments[testEnv].metadata.platformName || sessionCapabilities.platformName;
this.environments[testEnv].metadata.browserName = this.environments[testEnv].metadata.browserName || sessionCapabilities.browserName;
this.environments[testEnv].metadata.browserVersion = this.environments[testEnv].metadata.browserVersion || sessionCapabilities.browserVersion;
diff --git a/test/extra/reportObject.js b/test/extra/reportObject.js
index 83f4b44987..bbb73fc791 100644
--- a/test/extra/reportObject.js
+++ b/test/extra/reportObject.js
@@ -1220,6 +1220,601 @@ module.exports = {
['2022-12-22T08:13:11.636Z', ' Request DELETE /session/b798ac620a723364eefa550fe820baef ', '\'\''],
['2022-12-22T08:13:11.688Z', ' Response 200 DELETE /session/b798ac620a723364eefa550fe820baef (52ms)', '{ value: null }']
]
+ },
+ 'ecosia (duplicate)': {
+ 'reportPrefix': 'CHROME_108.0.5359.124__',
+ 'assertionsCount': 7,
+ 'lastError': {
+ 'name': 'NightwatchAssertError',
+ 'message': 'Testing if the page title contains \u001b[0;33m\'foo\'\u001b[0m in 5000ms - expected \u001b[0;32m"contains \'foo\'"\u001b[0m but got: \u001b[0;31m"nightwatch - Ecosia - Web"\u001b[0m \u001b[0;90m(5095ms)\u001b[0m',
+ 'showDiff': false,
+ 'abortOnFailure': true,
+ 'stack': 'Error\n at Proxy. (/Users/binayakghosh/projects/nightwatch-copy/lib/api/index.js:149:30)\n at DescribeInstance. (/Users/binayakghosh/projects/nightwatch-copy/examples/tests/ecosia.js:22:15)\n at Context.call (/Users/binayakghosh/projects/nightwatch-copy/lib/testsuite/context.js:476:35)\n at TestCase.run (/Users/binayakghosh/projects/nightwatch-copy/lib/testsuite/testcase.js:58:31)\n at Runnable.__runFn (/Users/binayakghosh/projects/nightwatch-copy/lib/testsuite/index.js:743:80)\n at Runnable.run (/Users/binayakghosh/projects/nightwatch-copy/lib/testsuite/runnable.js:126:21)\n at TestSuite.executeRunnable (/Users/binayakghosh/projects/nightwatch-copy/lib/testsuite/index.js:893:49)\n at TestSuite.handleRunnable (/Users/binayakghosh/projects/nightwatch-copy/lib/testsuite/index.js:908:33)\n at /Users/binayakghosh/projects/nightwatch-copy/lib/testsuite/index.js:743:21\n at async DefaultRunner.runTestSuite (/Users/binayakghosh/projects/nightwatch-copy/lib/runner/test-runners/default.js:76:7)'
+ },
+ 'skipped': [],
+ 'time': '13.74',
+ 'timeMs': 13738,
+ 'completed': {
+ 'Demo test ecosia.org': {
+ 'time': '8.146',
+ 'assertions': [{
+ 'name': 'NightwatchAssertError',
+ 'message': 'Element was visible after 24 milliseconds.',
+ 'stackTrace': '',
+ 'fullMsg': 'Element was visible after 24 milliseconds.',
+ 'failure': false
+ }, {
+ 'name': 'NightwatchAssertError',
+ 'message': 'Testing if the page title contains \u001b[0;33m\'Ecosia\'\u001b[0m \u001b[0;90m(4ms)\u001b[0m',
+ 'stackTrace': '',
+ 'fullMsg': 'Testing if the page title contains \u001b[0;33m\'Ecosia\'\u001b[0m \u001b[0;90m(4ms)\u001b[0m',
+ 'failure': false
+ }, {
+ 'name': 'NightwatchAssertError',
+ 'message': 'Testing if element \u001b[0;33m\u001b[0m is visible \u001b[0;90m(20ms)\u001b[0m',
+ 'stackTrace': '',
+ 'fullMsg': 'Testing if element \u001b[0;33m\u001b[0m is visible \u001b[0;90m(20ms)\u001b[0m',
+ 'failure': false
+ }, {
+ 'name': 'NightwatchAssertError',
+ 'message': 'Testing if element \u001b[0;33m