-
Notifications
You must be signed in to change notification settings - Fork 52
Labels
help wantedExtra attention is neededExtra attention is needed
Description
Describe the bug
Even though saveAllVideos is set to false, there is still an empty video added to Allure report of successful test execution.
Log
Click to open
❯ pnpm run wdio
> video-reporter-empty-video-wdio@ wdio /Users/user/Documents/sandboxes/video-reporter-empty-video-wdio
> wdio run ./wdio.conf.js
Execution of 1 workers started at 2025-10-21T20:26:24.493Z
2025-10-21T20:26:24.503Z INFO @wdio/cli:launcher: Run onPrepare hook
2025-10-21T20:26:24.504Z INFO @wdio/utils: Setting up browser driver for: chrome@stable
2025-10-21T20:26:24.504Z INFO @wdio/utils: Setting up browser binaries for: chrome@stable
2025-10-21T20:26:28.103Z INFO webdriver: Downloading Chromedriver v141.0.7390.109
2025-10-21T20:26:30.394Z INFO webdriver: Download of Chromedriver v141.0.7390.109 was successful
2025-10-21T20:26:30.396Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2025-10-21T20:26:30.396Z INFO @wdio/xvfb: XvfbManager.init() called
2025-10-21T20:26:30.396Z INFO @wdio/xvfb: Xvfb not needed on current platform
2025-10-21T20:26:30.397Z INFO @wdio/local-runner: Start worker 0-0 with arg: run ./wdio.conf.js
2025-10-21T20:26:30.403Z INFO @wdio/xvfb:ProcessFactory: xvfb-run not found, falling back to regular fork
2025-10-21T20:26:30.403Z INFO @wdio/xvfb:ProcessFactory: ProcessFactory: shouldRun=false, isAvailable=false
2025-10-21T20:26:30.403Z INFO @wdio/xvfb:ProcessFactory: Creating worker process with regular fork
2025-10-21T20:26:30.404Z DEBUG @wdio/local-runner: Send command run to worker with cid "0-0"
[0-0] 2025-10-21T20:26:30.834Z INFO @wdio/local-runner: Run worker command: run
[0-0] 2025-10-21T20:26:30.838Z DEBUG @wdio/runner: init remote session
[0-0] RUNNING in chrome - file:///test/specs/test.e2e.js
[0-0] 2025-10-21T20:26:30.934Z DEBUG @wdio/runner: init remote session
[0-0] 2025-10-21T20:26:30.935Z INFO webdriver: Initiate new session using the WebDriver protocol
[0-0] 2025-10-21T20:26:31.033Z INFO webdriver: Using Chromedriver v141.0.7390.109 from cache directory /var/folders/l1/0ssjnbcd4ln76s2zwk9phx640000gn/T
[0-0] 2025-10-21T20:26:31.397Z INFO chromedriver: Starting ChromeDriver 141.0.7390.109 (90285d7714d1dc1bb8392627bcb5908728d411e3-refs/branch-heads/7390@{#2246}) on port 51231
[0-0] 2025-10-21T20:26:31.397Z INFO chromedriver: Remote connections are allowed by an allowlist (0.0.0.0).
[0-0] 2025-10-21T20:26:31.397Z INFO chromedriver: Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
[0-0] 2025-10-21T20:26:31.402Z INFO chromedriver: ChromeDriver was started successfully on port 51231.
[0-0] 2025-10-21T20:26:31.454Z INFO @wdio/utils: Started Chromedriver v141.0.7390.109 with params --port=51231 --allowed-origins=* --allowed-ips=0.0.0.0 in 454ms on port 51231
[0-0] 2025-10-21T20:26:31.457Z INFO webdriver: [POST] http://localhost:51231/session
[0-0] 2025-10-21T20:26:32.561Z INFO webdriver: Register BiDi handler for session with id e95e1ef25c0a23d54301591ca5bdf246
[0-0] 2025-10-21T20:26:32.561Z INFO webdriver: Connecting to webSocketUrl ws://127.0.0.1:51231/session/e95e1ef25c0a23d54301591ca5bdf246
[0-0] 2025-10-21T20:26:32.562Z DEBUG webdriver: Attempt to connect to webSocketUrl ws://127.0.0.1:51231/session/e95e1ef25c0a23d54301591ca5bdf246
[0-0] 2025-10-21T20:26:32.565Z INFO webdriver: Connected to Bidi protocol at ws://127.0.0.1:51231/session/e95e1ef25c0a23d54301591ca5bdf246
[0-0] 2025-10-21T20:26:32.565Z INFO webdriver: Connected to WebDriver Bidi interface at ws://127.0.0.1:51231/session/e95e1ef25c0a23d54301591ca5bdf246
[0-0] 2025-10-21T20:26:32.565Z INFO webdriver: COMMAND getWindowHandle()
[0-0] 2025-10-21T20:26:32.566Z INFO webdriver: BIDI COMMAND browsingContext.getTree {}
[0-0] 2025-10-21T20:26:32.566Z INFO webdriver: BIDI COMMAND session.subscribe {"events":["browsingContext.contextCreated"]}
[0-0] 2025-10-21T20:26:32.566Z INFO webdriver: BIDI COMMAND session.subscribe {"events":["log.entryAdded","browsingContext.navigationStarted"]}
[0-0] 2025-10-21T20:26:32.566Z INFO webdriver: BIDI COMMAND script.addPreloadScript { functionDeclaration: <PreloadScript[1319 bytes]>, contexts: undefined }
[0-0] 2025-10-21T20:26:32.566Z INFO webdriver: BIDI COMMAND session.subscribe {"events":["browsingContext.navigationStarted","browsingContext.fragmentNavigated","network.responseCompleted","network.beforeRequestSent","network.fetchError"]}
[0-0] 2025-10-21T20:26:32.567Z INFO webdriver: BIDI COMMAND session.subscribe {"events":["browsingContext.userPromptOpened"]}
[0-0] 2025-10-21T20:26:32.567Z INFO webdriver: BIDI COMMAND session.subscribe {"events":["browsingContext.navigationStarted"]}
[0-0] 2025-10-21T20:26:32.567Z INFO webdriver: [GET] http://localhost:51231/session/e95e1ef25c0a23d54301591ca5bdf246/window
[0-0] 2025-10-21T20:26:32.568Z INFO webdriver: RESULT 71E0FA9E18F10BCC4CE8152E35595053
[0-0] 2025-10-21T20:26:32.572Z INFO webdriver: BIDI RESULT {"id":1,"result":{"contexts":[{"children":[],"clientWindow":"378111692","context":"71E0FA9E18F10BCC4CE8152E35595053","originalOpener":null,"parent":null,"url":"about:blank","userContext":"default"}]},"type":"success"}
[0-0] 2025-10-21T20:26:32.572Z INFO webdriverio:PolyfillManager: Adding polyfill script to context with id 71E0FA9E18F10BCC4CE8152E35595053
[0-0] 2025-10-21T20:26:32.572Z INFO webdriver: BIDI COMMAND script.callFunction {"functionDeclaration":"<Function[443 bytes] webdriverioPolyfill>","target":{"children":[],"clientWindow":"378111692","context":"71E0FA9E18F10BCC4CE8152E35595053","originalOpener":null,"parent":null,"url":"about:blank","userContext":"default"},"awaitPromise":false}
[0-0] 2025-10-21T20:26:32.572Z INFO webdriver: BIDI COMMAND script.addPreloadScript { functionDeclaration: <PreloadScript[443 bytes]>, contexts: ["71E0FA9E18F10BCC4CE8152E35595053"] }
[0-0] 2025-10-21T20:26:32.573Z INFO webdriver: BIDI RESULT {"id":2,"result":{"subscription":"58ba3ada-0eef-4a0a-acda-5c938dec8fbf"},"type":"success"}
[0-0] 2025-10-21T20:26:32.573Z INFO webdriver: BIDI RESULT {"id":3,"result":{"subscription":"1df11a29-d1f0-4280-9c6f-a6351e250268"},"type":"success"}
[0-0] 2025-10-21T20:26:32.573Z INFO webdriver: BIDI RESULT {"id":5,"result":{"subscription":"0c1d21f9-d484-4b2c-b7f5-b550ed37be50"},"type":"success"}
[0-0] 2025-10-21T20:26:32.573Z INFO webdriver: BIDI RESULT {"id":6,"result":{"subscription":"a7380df9-25e0-4af4-b789-f4714bbc6e37"},"type":"success"}
[0-0] 2025-10-21T20:26:32.573Z INFO webdriver: BIDI RESULT {"id":7,"result":{"subscription":"f8cdb1c6-c735-4cd1-ad30-48aa6f10b8f0"},"type":"success"}
[0-0] 2025-10-21T20:26:32.574Z INFO webdriver: BIDI RESULT {"id":4,"result":{"script":"0f7adb66-ee47-4018-bae2-7552bb308b1f"},"type":"success"}
[0-0] 2025-10-21T20:26:32.574Z INFO webdriver: BIDI RESULT {"id":8,"result":{"realm":"8530769073547565745.-7090315539987582895","result":{"type":"undefined"},"type":"success"},"type":"success"}
[0-0] 2025-10-21T20:26:32.574Z INFO webdriver: BIDI RESULT {"id":9,"result":{"script":"397d48ef-ecd9-4ca1-bbe1-cf8fb8d474cd"},"type":"success"}
[0-0] 2025-10-21T20:26:32.605Z DEBUG @wdio/utils:shim: Finished to run "beforeTest" hook in 0ms
[0-0] 2025-10-21T20:26:32.605Z INFO webdriver: BIDI COMMAND browsingContext.navigate {"context":"71E0FA9E18F10BCC4CE8152E35595053","url":"https://the-internet.herokuapp.com/login","wait":"complete"}
[0-0] 2025-10-21T20:26:34.799Z INFO webdriver: BIDI RESULT {"id":10,"result":{"navigation":"34fff0f9-58d0-41df-896f-09b5dccd35bd","url":"https://the-internet.herokuapp.com/login"},"type":"success"}
[0-0] 2025-10-21T20:26:34.799Z INFO webdriver: COMMAND getTitle()
[0-0] 2025-10-21T20:26:34.799Z INFO webdriver: [GET] http://localhost:51231/session/e95e1ef25c0a23d54301591ca5bdf246/title
[0-0] 2025-10-21T20:26:34.802Z INFO webdriver: RESULT The Internet
[0-0] Hello The Internet website
[0-0] 2025-10-21T20:26:34.802Z DEBUG @wdio/utils:shim: Finished to run "afterTest" hook in 0ms
[0-0] 2025-10-21T20:26:34.803Z DEBUG @wdio/utils:shim: Finished to run "after" hook in 0ms
[0-0] 2025-10-21T20:26:34.804Z INFO webdriver: COMMAND deleteSession()
[0-0] 2025-10-21T20:26:34.804Z INFO webdriver: [DELETE] http://localhost:51231/session/e95e1ef25c0a23d54301591ca5bdf246
[0-0] 2025-10-21T20:26:34.861Z INFO webdriver: RESULT null
[0-0] 2025-10-21T20:26:34.861Z INFO webdriver: Close Bidi connection to ws://127.0.0.1:51231/session/e95e1ef25c0a23d54301591ca5bdf246
[0-0] 2025-10-21T20:26:34.861Z INFO webdriver: Kill driver process with PID 49709
[0-0] 2025-10-21T20:26:40.034Z DEBUG wdio-video-reporter:helpers: abortTime exceeded while waiting for videos to be written.
[0-0]
[0-0] videoRenderTimeout triggered, not all videos finished writing to disk before patching Allure
2025-10-21T20:26:40.055Z DEBUG @wdio/local-runner: Runner 0-0 finished with exit code 0
[0-0] PASSED in chrome - file:///test/specs/test.e2e.js
2025-10-21T20:26:40.055Z INFO @wdio/cli:launcher: Run onWorkerEnd hook
"video" Reporter:
[2025-10-21T20:26:32.603Z] Adding execution video attachment as /Users/user/Documents/sandboxes/video-reporter-empty-video-wdio/_results_/should-login-with-valid-credentials-0-0--CHROME--10-21-2025--23-26-32-576.webm
[2025-10-21T20:26:34.862Z] Generated 0 videos, video report done!
"spec" Reporter:
------------------------------------------------------------------
[chrome 141.0.7390.109 mac #0-0] Running: chrome (v141.0.7390.109) on mac
[chrome 141.0.7390.109 mac #0-0] Session ID: e95e1ef25c0a23d54301591ca5bdf246
[chrome 141.0.7390.109 mac #0-0]
[chrome 141.0.7390.109 mac #0-0] » test/specs/test.e2e.js
[chrome 141.0.7390.109 mac #0-0] My Login application
[chrome 141.0.7390.109 mac #0-0] ✓ should login with valid credentials
[chrome 141.0.7390.109 mac #0-0]
[chrome 141.0.7390.109 mac #0-0] 1 passing (2.2s)
Spec Files: 1 passed, 1 total (100% completed) in 00:00:15
2025-10-21T20:26:40.056Z INFO @wdio/local-runner: Shutting down spawned worker
2025-10-21T20:26:40.309Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2025-10-21T20:26:40.309Z INFO @wdio/local-runner: shutting down
2025-10-21T20:26:40.309Z INFO @wdio/cli:launcher: Run onComplete hook
To Reproduce
https://github.com/gavvvr/repros/tree/wdio-video-reporter-865
Expected behavior
No video attached to Allure report and no empty .webm file are expected.
Environment (please complete the following information):
- wdio-video-reporter version: 6.2.0
- WebdriverIO version: 9.20.0
- Mode: Standalone
- Node.js version: 22.12.0
- PNPM version: 10.18.2
- Browser name and version: Chrome ??
- Platform name and version: MacOS 15.6
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed