Page MenuHomePhabricator
Paste P13417

Running selenium tests on wikimedia/core returns Error: ENOENT: no such file or directory
ActivePublic

Authored by Harriet on Nov 25 2020, 11:12 PM.
[0-5]
Screenshot location: /Users/user/Documents/apps/core/tests/selenium/log/User-should-be-able-to-log-in-%40daily.png
[0-5] (node:24513) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/Users/user/Documents/apps/core/tests/selenium/log/rawSeleniumVideoGrabs/User--should-be-able-to-log-in-daily--CHROME--11-26-2020--01-26-31-128/0006.png'
at Object.openSync (fs.js:458:3)
at Object.writeFileSync (fs.js:1355:35)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at Video.onTestEnd (/Users/user/Documents/apps/core/node_modules/wdio-video-reporter/dist/wdio-video-reporter.js:584:19)
at Video.<anonymous> (/Users/user/Documents/apps/core/node_modules/wdio-video-reporter/node_modules/@wdio/reporter/build/index.js:132:12)
at /Users/user/Documents/apps/core/node_modules/@wdio/runner/build/reporter.js:38:49
at Array.forEach (<anonymous>)
at BaseReporter.emit (/Users/user/Documents/apps/core/node_modules/@wdio/runner/build/reporter.js:38:20)
at MochaAdapter.emit (/Users/user/Documents/apps/core/node_modules/@wdio/mocha-framework/build/index.js:258:19)
at /Users/user/Documents/apps/core/node_modules/mocha/lib/runner.js:779:14
at done (/Users/user/Documents/apps/core/node_modules/mocha/lib/runnable.js:314:5)
at /Users/user/Documents/apps/core/node_modules/mocha/lib/runnable.js:379:11
[0-5] (node:24513) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:24513) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[0-5] (node:24513) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
[0-5] PASSED in chrome - /tests/selenium/specs/user.js
"dot" Reporter:
....................
Spec Files: 6 passed, 6 total (100% completed) in 00:02:03