Skip to content

Releases: browserstack/wdio-browserstack-service

@wdio/browserstack-service@9.32.0

Choose a tag to compare

@github-actions github-actions released this 24 Jul 12:41
ec15594

Minor Changes

  • 9b80e47: Add a skipAppOverride service option for App Automate (Appium) runs. With skipAppOverride: true the service classifies the session as App Automate even when no app option is set, does not upload an app, and does not inject an appium:app capability — the user supplies the app reference themselves (e.g. a pre-uploaded bs:// hash as a driver capability or via BROWSERSTACK_APP_ID). Setting it together with an app option logs a conflict warning and ignores the app option; skipAppOverride: false with no app fails fast with a configuration error before any session starts. Unset keeps existing behaviour unchanged.

@wdio/browserstack-service@9.31.0

Choose a tag to compare

@github-actions github-actions released this 24 Jul 06:00
8c79d58

Minor Changes

  • bebf0f1: - App Accessibility scans triggered inside test hooks (before/after, beforeEach/afterEach) are now correctly attributed to the wrapping test instead of being dropped.

  • 517d64d: - Custom tags (browser.setCustomTags) set inside Mocha beforeEach / afterEach hooks now reliably land on the intended test's custom metadata, unioning and deduping with tags set in the test body (parity with Java @Before / @After).

  • 05fe529: Custom tags (browser.setCustomTags) set inside Mocha beforeEach / afterEach hooks now reliably land on the intended test's custom metadata. WDIO's Mocha runner fires user hooks outside the SDK's per-test tracking span — beforeEach runs before the test instance is tracked and afterEach runs after it is finished — so tags set in those hooks previously either attached to the wrong test or were dropped from the payload.

    Tags set in beforeEach are now buffered and flushed onto the test at its start, and the test-finished event is deferred past the afterEach window so late tags still make the payload. Values set across beforeEach, the test body, and afterEach union and dedupe onto the test (parity with Java @Before / @After).

@wdio/browserstack-service@8.49.1

Choose a tag to compare

@github-actions github-actions released this 24 Jul 12:44
e8b2100

Patch Changes

  • 6073bcc: Fixed skipped tests (it.skip, this.skip() in before/beforeEach hooks) and suites aborted by a failed before hook not being reported to Test Observability when using the CLI. Fixed Automate sessions from skipped/aborted spec files not being linked to the Test Observability build. Fixed hook results not appearing on the dashboard and a failed before hook not failing the build.

@wdio/browserstack-service@9.30.2

Choose a tag to compare

@github-actions github-actions released this 23 Jul 13:04
368f895

Patch Changes

  • a43e534: - Fixed skipped tests (it.skip, this.skip() in before/beforeEach hooks) and suites aborted by a failed before hook not being reported to Test Observability when using the CLI.
    • Fixed Automate sessions from skipped/aborted spec files not being linked to the Test Observability build.

@wdio/browserstack-service@8.49.0

Choose a tag to compare

@github-actions github-actions released this 23 Jul 13:09
9cf34ac

Minor Changes

  • 46ee119: BrowserStack now publishes @wdio/browserstack-service from its own repository
    (browserstack/wdio-browserstack-service) on an independent release cadence, using npm OIDC
    trusted publishing. No change for end users — same package name and the same
    services: ['browserstack'] configuration continue to work unchanged.

Patch Changes

  • f78d091: Declare webdriverio as a dependency instead of a peerDependency, matching the v8 package published from the WebdriverIO monorepo (@wdio/browserstack-service@8.48.3 keeps webdriverio in dependencies at 8.46.0, peering only @wdio/cli). The extraction had moved it into peerDependencies (^8.0.0), which forces the consumer's webdriverio and can npm ERESOLVE against a dep peering a non-overlapping webdriverio range. Restores install parity with the upstream v8 package; no user-facing API change.

  • 29be3ed: Port SDK-6277 (upstream webdriverio/webdriverio#15330): in the CLI/binary (v8) flow, forward screenshot-on-failure to the binary over gRPC as a TEST_SCREENSHOT log (the binary uploads it via its own authorized testhub session) instead of the direct-HTTP onScreenshot path, which 401s under the worker's binary-issued JWT. Also registers the command/result listeners in CLI mode so the user's saveScreenshot()/takeScreenshot() result is captured, and honors the incoming log kind in the mocha CLI framework so screenshots route correctly. Keeps the standalone v8 line at parity with the monorepo.

  • cc229fe: Port missing upstream monorepo (webdriverio/webdriverio) v8 commits to keep the standalone v8 line at parity:

    • webdriverio/webdriverio#15231 — Test Management: add testManagementOptions.testPlanId support (env BROWSERSTACK_TEST_PLAN_ID / --browserstack.testManagementOptions.testPlanId CLI arg / config), forward test_management.test_plan_id in the build-start request, strip CLI-only caps (NOT_ALLOWED_KEYS_IN_CAPS, incl. testManagementOptions) before hitting the hub, and surface build-start errors.
    • webdriverio/webdriverio#15217 — gRPC: raise the send/receive message size limit to 20 MB to accommodate large extension payloads.
    • webdriverio/webdriverio#15146 — Exit handling: terminate the CLI process with SIGINT instead of SIGKILL on Unix.
    • webdriverio/webdriverio#15200 — Logging: redact credentials (username/accesskey/user/key) from CLI log output before writing to file and console.

@wdio/browserstack-service@9.30.1

Choose a tag to compare

@github-actions github-actions released this 21 Jul 13:21
9557e0e

Patch Changes

  • de1684b: Refresh the framework session id on reloadSession so Test Observability keeps linking to the correct session after a reload (#54), and declare browser.setCustomTags on the WebdriverIO.Browser type so it type-checks in consumer projects (SDK-6882, #53).

@wdio/browserstack-service@9.30.0

Choose a tag to compare

@github-actions github-actions released this 15 Jul 13:20
114c7ba

Minor Changes

  • e4cf295: Publish from the standalone browserstack/wdio-browserstack-service repo, at parity with the WebdriverIO monorepo. Includes Load Testing Service (LTS) support, one-to-many Test-Case-ID tagging (setCustomTestCaseId), correct test/hook finish on mocha timeouts, per-batch failure isolation in the request queue, accessibility Browser type augmentations, and yauzl upgraded to ^3.4.0. No user-facing API change.
  • 46ee119: BrowserStack now publishes @wdio/browserstack-service from its own repository
    (browserstack/wdio-browserstack-service) on an independent release cadence, using npm OIDC
    trusted publishing. No change for end users — same package name and the same
    services: ['browserstack'] configuration continue to work unchanged.

Patch Changes

  • 7306121: Declare webdriverio as a dependency instead of a peerDependency, matching the package published from the WebdriverIO monorepo. The extraction had moved webdriverio into peerDependencies (^9.0.0); npm then forced the consumer's webdriverio to ^9, which conflicts with any project that also depends on a package peering webdriverio@"^7 || ^8" (e.g. wdio-chromedriver-service@^8) and surfaced as an npm ERESOLVE on install — a failure the monorepo-published package never had. Restores install parity with the upstream package; no user-facing API change.
  • 7d6f822: Port the 2026-07-10 monorepo accessibility/CLI fixes to keep the standalone at parity (webdriverio/webdriverio#15380, #15383, #15382, #15381, #15376): skip the accessibility scan for BiDi window/context commands, route WDIO CLI-flow App Automate sessions to app-accessibility, finalize orphaned test runs on an interrupted exit, coerce stringified boolean accessibility options, and report mocha hooks in the CLI/testHub flow. No user-facing API change.