Skip to content

feat(browserstack-service): stamp hook_run_uuid on App A11y scans fired inside hooks [APPA11Y-5542]#11

Open
AakashHotchandani wants to merge 2 commits into
v8from
APPA11Y-5542-hook-scans-wdio
Open

feat(browserstack-service): stamp hook_run_uuid on App A11y scans fired inside hooks [APPA11Y-5542]#11
AakashHotchandani wants to merge 2 commits into
v8from
APPA11Y-5542-hook-scans-wdio

Conversation

@AakashHotchandani

Copy link
Copy Markdown
Owner

Port of the App A11y hook-scan change to the webdriverio monorepo copy of @wdio/browserstack-service (v8 base). Mirrors browserstack/wdio-browserstack-service#48.

What

The SDK stamps the hook's run UUID (thHookRunUuid) on App A11y scans fired inside a supported hook (before/after, beforeEach/afterEach). SeleniumHub appAllyHandler (PR webdriverio#14162) relays it as hook_run_uuid; app-accessibility reconciles the scan onto the wrapping test. Additive — no field ⇒ in-test scan behaviour unchanged.

Changes

  • util.ts_getParamsForAppAccessibility / performA11yScan thread thHookRunUuid.
  • insights-handler.tsgetCurrentHook() exposes the HookRunStarted uuid (= hook BTCER uuid).
  • accessibility-handler.tsbeforeHook/afterHook set _currentHookRunUuid + enable the mocha hook scan gate; commandWrapper passes it to performA11yScan.
  • service.ts — wire accessibilityHandler.beforeHook/afterHook.
  • tests — hook-scan stamp/clear + unsupported-framework no-op.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

🤖 Generated with Claude Code

AakashHotchandani and others added 2 commits July 15, 2026 17:28
…ed inside hooks [APPA11Y-5542]

Port of browserstack/wdio-browserstack-service#48 to the webdriverio monorepo copy.
The SDK stamps the hook's run UUID (thHookRunUuid) on App A11y scans fired inside a
supported hook, so SeleniumHub (appAllyHandler, PR webdriverio#14162) relays it as hook_run_uuid and
app-accessibility reconciles the scan onto the wrapping test. Additive; in-test scans unchanged.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…rs) [APPA11Y-5542]

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant