@wdio/browserstack-service 9.30.2 → 9.31.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.
@@ -33,6 +33,7 @@ declare class _InsightsHandler {
33
33
  getCucumberHookUniqueId(hookType: string, hook: CucumberHook | undefined): string | null;
34
34
  getCucumberFeatureUniqueId(): string;
35
35
  setCurrentHook(hookDetails: CurrentRunInfo): void;
36
+ getCurrentHook(): CurrentRunInfo;
36
37
  sendScenarioObjectSkipped(scenario: Scenario, feature: Feature, uri: string): Promise<void>;
37
38
  processCucumberHook(test: CucumberHook | undefined, params: CucumberHookParams, result?: Frameworks.TestResult): Promise<void>;
38
39
  beforeHook(test: Frameworks.Test | CucumberHook | undefined, context: unknown): Promise<void>;
package/build/util.d.ts CHANGED
@@ -80,8 +80,9 @@ export declare const shouldScanTestForAccessibility: (suiteTitle: string | undef
80
80
  export declare const isAccessibilityAutomationSession: (accessibilityFlag?: boolean | string | null) => boolean | "" | null | undefined;
81
81
  export declare const isAppAccessibilityAutomationSession: (accessibilityFlag?: boolean | string, isAppAutomate?: boolean) => boolean | "" | null | undefined;
82
82
  export declare const formatString: (template: (string | null), ...values: (string | null)[]) => string;
83
- export declare const _getParamsForAppAccessibility: (commandName?: string, testName?: string) => {
83
+ export declare const _getParamsForAppAccessibility: (commandName?: string, testName?: string, hookRunUuid?: string | null) => {
84
84
  thTestRunUuid: any;
85
+ thHookRunUuid: any;
85
86
  thBuildUuid: any;
86
87
  thJwtToken: any;
87
88
  authHeader: any;
@@ -89,7 +90,7 @@ export declare const _getParamsForAppAccessibility: (commandName?: string, testN
89
90
  method: string | undefined;
90
91
  testName: string | undefined;
91
92
  };
92
- export declare const performA11yScan: (isAppAutomate: boolean, browser: WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser, isBrowserStackSession?: boolean, isAccessibility?: boolean | string, commandName?: string, testName?: string) => Promise<{
93
+ export declare const performA11yScan: (isAppAutomate: boolean, browser: WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser, isBrowserStackSession?: boolean, isAccessibility?: boolean | string, commandName?: string, testName?: string, hookRunUuid?: string | null) => Promise<{
93
94
  [key: string]: any;
94
95
  } | undefined>;
95
96
  export declare const getA11yResults: (...args: (object | boolean | undefined | null | string)[]) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/browserstack-service",
3
- "version": "9.30.2",
3
+ "version": "9.31.0",
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",