@wdio/browserstack-service 9.30.2 → 9.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -21,6 +21,7 @@ declare class _AccessibilityHandler {
21
21
  private _autoScanning;
22
22
  private _testIdentifier;
23
23
  private _testMetadata;
24
+ private _currentHookRunUuid;
24
25
  private static _a11yScanSessionMap;
25
26
  private _sessionId;
26
27
  private listener;
@@ -35,6 +36,16 @@ declare class _AccessibilityHandler {
35
36
  */
36
37
  beforeScenario(world: ITestCaseHookParameter): Promise<void>;
37
38
  afterScenario(world: ITestCaseHookParameter): Promise<void>;
39
+ /**
40
+ * Hook scans. A driver command executed inside a test hook (before/after, beforeEach/afterEach,
41
+ * cucumber hooks) should fire an accessibility scan carrying the hook's run UUID so the backend
42
+ * (SeleniumHub appAllyHandler -> app-accessibility) reconciles it onto the wrapping test case
43
+ * instead of collapsing into a NULL row. `hookRunUuid` is the SAME uuid the SDK reports to
44
+ * TestHub as HookRunStarted (InsightsHandler.getCurrentHook) = the hook's BTCER uuid.
45
+ * Additive: when hookRunUuid is absent, in-test scan behaviour is unchanged.
46
+ */
47
+ beforeHook(test: Frameworks.Test | undefined, context: unknown, hookRunUuid?: string | null): Promise<void>;
48
+ afterHook(): Promise<void>;
38
49
  private commandWrapper;
39
50
  private sendTestStopEvent;
40
51
  private getIdentifier;