@wdio/browserstack-service 9.35.0 → 9.35.1

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.
@@ -101,6 +101,23 @@ export default class BrowserstackService implements Services.ServiceInstance {
101
101
  afterScenario(world: ITestCaseHookParameter): Promise<void>;
102
102
  beforeStep(step: Frameworks.PickleStep, scenario: Pickle): Promise<void>;
103
103
  afterStep(step: Frameworks.PickleStep, scenario: Pickle, result: Frameworks.PickleResult): Promise<void>;
104
+ /**
105
+ * Whether accessibility is being driven by the binary rather than the classic handler.
106
+ *
107
+ * Precisely: it decides whether the CLASSIC handler owns the session's accessibility state.
108
+ * It is the same condition that gates `AccessibilityHandler.before()` in the `before` hook, so
109
+ * keeping it in one place is what stops the two drifting.
110
+ *
111
+ * The two paths are not strictly exclusive. `AccessibilityModule` is registered on
112
+ * `startBinResponse.accessibility?.success` alone, independent of provider — `isNonBstackA11y`
113
+ * exists for exactly the turboscale / non-BrowserStack case — so with the binary up against a
114
+ * non-BrowserStack provider the module can hold real state AND the handler's `before()` will
115
+ * have run. Both then need migrating, which is what the caller does.
116
+ *
117
+ * `isRunning()` alone is NOT equivalent, and that is the trap: under a non-BrowserStack
118
+ * provider it is true while the classic handler is the one holding the live state.
119
+ */
120
+ private _isCliAccessibilityFlow;
104
121
  onReload(oldSessionId: string, newSessionId: string): Promise<void>;
105
122
  _isAppAutomate(): boolean;
106
123
  _updateJob(requestBody: unknown): Promise<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/browserstack-service",
3
- "version": "9.35.0",
3
+ "version": "9.35.1",
4
4
  "description": "WebdriverIO service for better Browserstack integration",
5
5
  "author": "BrowserStack <support@browserstack.com>",
6
6
  "homepage": "https://github.com/browserstack/wdio-browserstack-service",