@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.
- package/build/accessibility-handler.d.ts +11 -0
- package/build/cleanup.js +8 -5
- package/build/cli/modules/accessibilityModule.d.ts +3 -0
- package/build/cli/modules/customTagsModule.d.ts +16 -0
- package/build/cli/modules/testHubModule.d.ts +25 -1
- package/build/customTags.d.ts +14 -0
- package/build/index.js +257 -25
- package/build/insights-handler.d.ts +1 -0
- package/build/types.d.ts +11 -0
- package/build/util.d.ts +21 -2
- package/package.json +1 -1
|
@@ -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/types.d.ts
CHANGED
|
@@ -129,6 +129,17 @@ export interface BrowserstackConfig {
|
|
|
129
129
|
* @default undefined
|
|
130
130
|
*/
|
|
131
131
|
app?: string | AppConfig;
|
|
132
|
+
/**
|
|
133
|
+
* Treat this session as App Automate without the SDK managing the app.
|
|
134
|
+
* When `true`, the SDK classifies the run as App Automate, does NOT upload
|
|
135
|
+
* an app, and does NOT inject an `appium:app` capability — you supply the
|
|
136
|
+
* app reference yourself via the `appium:app` driver capability.
|
|
137
|
+
* When explicitly `false` and no `app` is provided, the SDK throws a
|
|
138
|
+
* config error before the run starts. Leaving it unset preserves existing
|
|
139
|
+
* behaviour.
|
|
140
|
+
* @default undefined
|
|
141
|
+
*/
|
|
142
|
+
skipAppOverride?: boolean;
|
|
132
143
|
/**
|
|
133
144
|
* Enable routing connections from BrowserStack cloud through your computer.
|
|
134
145
|
* You will also need to set `browserstack.local` to true in browser capabilities.
|
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;
|
|
@@ -160,6 +161,24 @@ export declare function getBrowserStackKey(config: Options.Testrunner): string |
|
|
|
160
161
|
export declare function isUndefined(value: unknown): boolean;
|
|
161
162
|
export declare function isTrue(value?: unknown): boolean;
|
|
162
163
|
export declare function isFalse(value?: unknown): boolean;
|
|
164
|
+
/**
|
|
165
|
+
* skipAppOverride validation chokepoint — ported from the Node SDK's
|
|
166
|
+
* validateSkipAppOverride (helper.js) / Java BrowserStackJavaAgent.processAppOptions.
|
|
167
|
+
* Called ONCE from the launcher (main process, pre-session). Emits the fixed warning,
|
|
168
|
+
* handles the three edge cases, and clears the app on conflict so it is neither uploaded
|
|
169
|
+
* nor injected. There is NO Tier-2 branch: every WebdriverIO test framework
|
|
170
|
+
* (mocha/jasmine/cucumber) supports App Automate.
|
|
171
|
+
*
|
|
172
|
+
* The standard warning and the edge-2 error are verbatim with the other BrowserStack SDKs
|
|
173
|
+
* (BrowserStackJavaAgent#processAppOptions). The edge-1 conflict warning is INTENTIONALLY adapted for
|
|
174
|
+
* WebdriverIO — it says "browserstack service options" (where WDIO reads `app`), not "browserstack.yml" —
|
|
175
|
+
* so please do NOT "fix" it back to the yml wording to match the other SDKs.
|
|
176
|
+
* Graceful: never throws except the deliberate edge-2 config error (explicit false + no app),
|
|
177
|
+
* which fires pre-session so the run aborts cleanly.
|
|
178
|
+
*
|
|
179
|
+
* Mutates `options.app` (edge-1). 3-state via isTrue/isFalse — never `!options.skipAppOverride`.
|
|
180
|
+
*/
|
|
181
|
+
export declare function validateSkipAppOverride(options?: BrowserstackConfig & BrowserstackOptions): void;
|
|
163
182
|
export declare function frameworkSupportsHook(hook: string, framework?: string): boolean;
|
|
164
183
|
export declare const patchConsoleLogs: (...args: unknown[]) => any;
|
|
165
184
|
export declare function getFailureObject(error: string | Error): {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/browserstack-service",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.32.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",
|