@wdio/browserstack-service 9.4.3 → 9.4.4
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/Percy/Percy-Handler.d.ts +0 -1
- package/build/Percy/Percy-Handler.d.ts.map +1 -1
- package/build/Percy/Percy.d.ts.map +1 -1
- package/build/Percy/PercyBinary.d.ts +1 -1
- package/build/Percy/PercyBinary.d.ts.map +1 -1
- package/build/Percy/PercyCaptureMap.d.ts.map +1 -1
- package/build/Percy/PercyHelper.d.ts +1 -1
- package/build/Percy/PercyHelper.d.ts.map +1 -1
- package/build/Percy/PercyLogger.d.ts +1 -1
- package/build/Percy/PercyLogger.d.ts.map +1 -1
- package/build/Percy/PercySDK.d.ts +3 -3
- package/build/Percy/PercySDK.d.ts.map +1 -1
- package/build/accessibility-handler.d.ts +3 -6
- package/build/accessibility-handler.d.ts.map +1 -1
- package/build/ai-handler.d.ts +8 -4
- package/build/ai-handler.d.ts.map +1 -1
- package/build/bstackLogger.d.ts +1 -1
- package/build/bstackLogger.d.ts.map +1 -1
- package/build/cleanup.d.ts +4 -3
- package/build/cleanup.d.ts.map +1 -1
- package/build/crash-reporter.d.ts +3 -3
- package/build/crash-reporter.d.ts.map +1 -1
- package/build/data-store.d.ts +1 -1
- package/build/data-store.d.ts.map +1 -1
- package/build/index.d.ts +6 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +52 -41
- package/build/insights-handler.d.ts +1 -1
- package/build/insights-handler.d.ts.map +1 -1
- package/build/instrumentation/funnelInstrumentation.d.ts +12 -3
- package/build/instrumentation/funnelInstrumentation.d.ts.map +1 -1
- package/build/launcher.d.ts +3 -3
- package/build/launcher.d.ts.map +1 -1
- package/build/log4jsAppender.d.ts +6 -1
- package/build/log4jsAppender.d.ts.map +1 -1
- package/build/logPatcher.d.ts +7 -8
- package/build/logPatcher.d.ts.map +1 -1
- package/build/logReportingAPI.d.ts +10 -7
- package/build/logReportingAPI.d.ts.map +1 -1
- package/build/performance-tester.d.ts +3 -1
- package/build/performance-tester.d.ts.map +1 -1
- package/build/scripts/accessibility-scripts.d.ts +13 -3
- package/build/scripts/accessibility-scripts.d.ts.map +1 -1
- package/build/service.d.ts +4 -4
- package/build/service.d.ts.map +1 -1
- package/build/testHub/utils.d.ts +14 -4
- package/build/testHub/utils.d.ts.map +1 -1
- package/build/testOps/featureStats.d.ts +7 -1
- package/build/testOps/featureStats.d.ts.map +1 -1
- package/build/testOps/listener.d.ts +1 -1
- package/build/testOps/listener.d.ts.map +1 -1
- package/build/testOps/testOpsConfig.d.ts +1 -1
- package/build/testOps/testOpsConfig.d.ts.map +1 -1
- package/build/testOps/usageStats.d.ts +21 -4
- package/build/testOps/usageStats.d.ts.map +1 -1
- package/build/types.d.ts +46 -10
- package/build/types.d.ts.map +1 -1
- package/build/util.d.ts +24 -26
- package/build/util.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Percy-Handler.d.ts","sourceRoot":"","sources":["../../src/Percy/Percy-Handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAazE,cAAM,aAAa;
|
|
1
|
+
{"version":3,"file":"Percy-Handler.d.ts","sourceRoot":"","sources":["../../src/Percy/Percy-Handler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAazE,cAAM,aAAa;IASX,OAAO,CAAC,qBAAqB;IAC7B,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,cAAc,CAAC;IACvB,OAAO,CAAC,UAAU,CAAC;IAZvB,OAAO,CAAC,YAAY,CAAC,CAAQ;IAC7B,OAAO,CAAC,iCAAiC,CAAC,CAAiB;IAC3D,OAAO,CAAC,uBAAuB,CAAI;IACnC,OAAO,CAAC,yBAAyB,CAA4D;IAC7F,OAAO,CAAC,wBAAwB,CAA8B;IAC9D,OAAO,CAAC,gBAAgB,CAAC,CAAiB;gBAG9B,qBAAqB,EAAE,MAAM,GAAG,SAAS,EACzC,QAAQ,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,kBAAkB,EAC9D,aAAa,EAAE,YAAY,CAAC,8BAA8B,EAC1D,cAAc,CAAC,EAAE,OAAO,YAAA,EACxB,UAAU,CAAC,EAAE,MAAM,YAAA;IAO/B,eAAe,CAAC,IAAI,EAAE,MAAM;IAItB,QAAQ;IAUR,gBAAgB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI;IAmBrE,MAAM;IAIZ,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAM1D,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO;IA+BhD,0BAA0B;IAS1B,oBAAoB,CAAE,IAAI,EAAE,iBAAiB;IAsB7C,mBAAmB,CAAE,IAAI,EAAE,iBAAiB,GAAG,gBAAgB;IA2B/D,SAAS;IAMT,aAAa;CAKtB;AAGD,QAAA,MAAM,YAAY,EAAE,OAAO,aAAoD,CAAA;AAC/E,KAAK,YAAY,GAAG,aAAa,CAAA;AAEjC,eAAe,YAAY,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Percy.d.ts","sourceRoot":"","sources":["../../src/Percy/Percy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Percy.d.ts","sourceRoot":"","sources":["../../src/Percy/Percy.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAK1C,cAAM,KAAK;;IAWP,gBAAgB,UAAQ;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAO;IAC7B,gBAAgB,UAAQ;IACxB,KAAK,EAAE,OAAO,CAAA;gBAEF,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,UAAU;IAiBxG,WAAW;IAYX,KAAK;IA4CL,IAAI;IAWV,SAAS;IAIH,eAAe;IAmCf,iBAAiB;CA8B1B;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -3,7 +3,7 @@ declare class PercyBinary {
|
|
|
3
3
|
constructor();
|
|
4
4
|
getBinaryPath(): Promise<string>;
|
|
5
5
|
validateBinary(binaryPath: string): Promise<unknown>;
|
|
6
|
-
download(destParentDir:
|
|
6
|
+
download(destParentDir: string): Promise<string>;
|
|
7
7
|
}
|
|
8
8
|
export default PercyBinary;
|
|
9
9
|
//# sourceMappingURL=PercyBinary.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PercyBinary.d.ts","sourceRoot":"","sources":["../../src/Percy/PercyBinary.ts"],"names":[],"mappings":"AAUA,cAAM,WAAW;;;IAmDP,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAgBhC,cAAc,CAAC,UAAU,EAAE,MAAM;IAiBjC,QAAQ,CAAC,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"PercyBinary.d.ts","sourceRoot":"","sources":["../../src/Percy/PercyBinary.ts"],"names":[],"mappings":"AAUA,cAAM,WAAW;;;IAmDP,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC;IAgBhC,cAAc,CAAC,UAAU,EAAE,MAAM;IAiBjC,QAAQ,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CA8DzD;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PercyCaptureMap.d.ts","sourceRoot":"","sources":["../../src/Percy/PercyCaptureMap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PercyCaptureMap.d.ts","sourceRoot":"","sources":["../../src/Percy/PercyCaptureMap.ts"],"names":[],"mappings":"AASA,cAAM,eAAe;;IAGjB,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAYhD,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAQhD,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAI9C,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;CAW7C;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -4,5 +4,5 @@ import type { Options } from '@wdio/types';
|
|
|
4
4
|
import Percy from './Percy.js';
|
|
5
5
|
export declare const startPercy: (options: BrowserstackConfig & Options.Testrunner, config: Options.Testrunner, bsConfig: UserConfig) => Promise<Percy>;
|
|
6
6
|
export declare const stopPercy: (percy: Percy) => Promise<unknown>;
|
|
7
|
-
export declare const getBestPlatformForPercySnapshot: (capabilities?: Capabilities.TestrunnerCapabilities) =>
|
|
7
|
+
export declare const getBestPlatformForPercySnapshot: (capabilities?: Capabilities.TestrunnerCapabilities) => WebdriverIO.Capabilities | null | undefined;
|
|
8
8
|
//# sourceMappingURL=PercyHelper.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PercyHelper.d.ts","sourceRoot":"","sources":["../../src/Percy/PercyHelper.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAEjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAG1C,OAAO,KAAK,MAAM,YAAY,CAAA;AAE9B,eAAO,MAAM,UAAU,YAAmB,kBAAkB,GAAG,OAAO,CAAC,UAAU,UAAU,OAAO,CAAC,UAAU,YAAY,UAAU,KAAG,OAAO,CAAC,KAAK,CAQlJ,CAAA;AAED,eAAO,MAAM,SAAS,UAAiB,KAAK,qBAG3C,CAAA;AAED,eAAO,MAAM,+BAA+B,kBAAmB,YAAY,CAAC,sBAAsB,
|
|
1
|
+
{"version":3,"file":"PercyHelper.d.ts","sourceRoot":"","sources":["../../src/Percy/PercyHelper.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAEjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAG1C,OAAO,KAAK,MAAM,YAAY,CAAA;AAE9B,eAAO,MAAM,UAAU,YAAmB,kBAAkB,GAAG,OAAO,CAAC,UAAU,UAAU,OAAO,CAAC,UAAU,YAAY,UAAU,KAAG,OAAO,CAAC,KAAK,CAQlJ,CAAA;AAED,eAAO,MAAM,SAAS,UAAiB,KAAK,qBAG3C,CAAA;AAED,eAAO,MAAM,+BAA+B,kBAAmB,YAAY,CAAC,sBAAsB,gDAsDjG,CAAA"}
|
|
@@ -6,7 +6,7 @@ export declare class PercyLogger {
|
|
|
6
6
|
private static formatLog;
|
|
7
7
|
static info(message: string): void;
|
|
8
8
|
static error(message: string): void;
|
|
9
|
-
static debug(message: string, param?:
|
|
9
|
+
static debug(message: string, param?: unknown): void;
|
|
10
10
|
static warn(message: string): void;
|
|
11
11
|
static trace(message: string): void;
|
|
12
12
|
static clearLogger(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PercyLogger.d.ts","sourceRoot":"","sources":["../../src/Percy/PercyLogger.ts"],"names":[],"mappings":"AAWA,qBAAa,WAAW;IACpB,OAAc,WAAW,SAA4C;IACrE,OAAO,CAAC,MAAM,CAAC,aAAa,CAAmC;IAC/D,OAAO,CAAC,MAAM,CAAC,aAAa,CAAuB;IAEnD,MAAM,CAAC,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAgBrD,OAAO,CAAC,MAAM,CAAC,SAAS;WAIV,IAAI,CAAC,OAAO,EAAE,MAAM;WAKpB,KAAK,CAAC,OAAO,EAAE,MAAM;WAKrB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"PercyLogger.d.ts","sourceRoot":"","sources":["../../src/Percy/PercyLogger.ts"],"names":[],"mappings":"AAWA,qBAAa,WAAW;IACpB,OAAc,WAAW,SAA4C;IACrE,OAAO,CAAC,MAAM,CAAC,aAAa,CAAmC;IAC/D,OAAO,CAAC,MAAM,CAAC,aAAa,CAAuB;IAEnD,MAAM,CAAC,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAgBrD,OAAO,CAAC,MAAM,CAAC,SAAS;WAIV,IAAI,CAAC,OAAO,EAAE,MAAM;WAKpB,KAAK,CAAC,OAAO,EAAE,MAAM;WAKrB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;WAStC,IAAI,CAAC,OAAO,EAAE,MAAM;WAKpB,KAAK,CAAC,OAAO,EAAE,MAAM;WAKrB,WAAW;WAOX,YAAY;CAK7B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const snapshot: (...args:
|
|
2
|
-
export declare const screenshot: (...args:
|
|
3
|
-
export declare const screenshotApp: (...args:
|
|
1
|
+
export declare const snapshot: (...args: unknown[]) => void;
|
|
2
|
+
export declare const screenshot: (...args: unknown[]) => Promise<void>;
|
|
3
|
+
export declare const screenshotApp: (...args: unknown[]) => Promise<void>;
|
|
4
4
|
//# sourceMappingURL=PercySDK.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PercySDK.d.ts","sourceRoot":"","sources":["../../src/Percy/PercySDK.ts"],"names":[],"mappings":"AAsCA,eAAO,MAAM,QAAQ,YApBW,
|
|
1
|
+
{"version":3,"file":"PercySDK.d.ts","sourceRoot":"","sources":["../../src/Percy/PercySDK.ts"],"names":[],"mappings":"AAsCA,eAAO,MAAM,QAAQ,YApBW,OAAO,EAAE,SAoBF,CAAA;AA2CvC,eAAO,MAAM,UAAU,YARiB,OAAO,EAAE,kBAQN,CAAA;AAW3C,eAAO,MAAM,aAAa,YARiB,OAAO,EAAE,kBAQH,CAAA"}
|
|
@@ -2,10 +2,7 @@ import type { Capabilities, Frameworks } from '@wdio/types';
|
|
|
2
2
|
import type { ITestCaseHookParameter } from './cucumber-types.js';
|
|
3
3
|
declare class _AccessibilityHandler {
|
|
4
4
|
private _browser;
|
|
5
|
-
private _capabilities;
|
|
6
5
|
private _framework?;
|
|
7
|
-
private _accessibilityAutomation?;
|
|
8
|
-
private _accessibilityOpts?;
|
|
9
6
|
private _platformA11yMeta;
|
|
10
7
|
private _caps;
|
|
11
8
|
private _suiteFile?;
|
|
@@ -15,9 +12,9 @@ declare class _AccessibilityHandler {
|
|
|
15
12
|
private static _a11yScanSessionMap;
|
|
16
13
|
private _sessionId;
|
|
17
14
|
private listener;
|
|
18
|
-
constructor(_browser: WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser, _capabilities: Capabilities.ResolvedTestrunnerCapabilities, isAppAutomate?: boolean, _framework?: string | undefined, _accessibilityAutomation?:
|
|
19
|
-
[key: string]:
|
|
20
|
-
}
|
|
15
|
+
constructor(_browser: WebdriverIO.Browser | WebdriverIO.MultiRemoteBrowser, _capabilities: Capabilities.ResolvedTestrunnerCapabilities, isAppAutomate?: boolean, _framework?: string | undefined, _accessibilityAutomation?: boolean | string, _accessibilityOpts?: {
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
});
|
|
21
18
|
setSuiteFile(filename: string): void;
|
|
22
19
|
_getCapabilityValue(caps: Capabilities.ResolvedTestrunnerCapabilities, capType: string, legacyCapType: string): unknown;
|
|
23
20
|
before(sessionId: string): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accessibility-handler.d.ts","sourceRoot":"","sources":["../src/accessibility-handler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAqBjE,cAAM,qBAAqB;IAYnB,OAAO,CAAC,QAAQ;
|
|
1
|
+
{"version":3,"file":"accessibility-handler.d.ts","sourceRoot":"","sources":["../src/accessibility-handler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE3D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAqBjE,cAAM,qBAAqB;IAYnB,OAAO,CAAC,QAAQ;IAGhB,OAAO,CAAC,UAAU,CAAC;IAdvB,OAAO,CAAC,iBAAiB,CAA6B;IACtD,OAAO,CAAC,KAAK,CAA6C;IAC1D,OAAO,CAAC,UAAU,CAAC,CAAQ;IAC3B,OAAO,CAAC,cAAc,CAAC,CAAS;IAChC,OAAO,CAAC,qBAAqB,CAAC,CAA6B;IAC3D,OAAO,CAAC,aAAa,CAAkC;IACvD,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAkC;IACpE,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,QAAQ,CAAyB;gBAG7B,QAAQ,EAAE,WAAW,CAAC,OAAO,GAAG,WAAW,CAAC,kBAAkB,EACtE,aAAa,EAAE,YAAY,CAAC,8BAA8B,EAC1D,aAAa,CAAC,EAAE,OAAO,EACf,UAAU,CAAC,EAAE,MAAM,YAAA,EAC3B,wBAAwB,CAAC,EAAE,OAAO,GAAG,MAAM,EAC3C,kBAAkB,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KAAE;IAiBpD,YAAY,CAAC,QAAQ,EAAE,MAAM;IAI7B,mBAAmB,CAAC,IAAI,EAAE,YAAY,CAAC,8BAA8B,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM;IA6BvG,MAAM,CAAE,SAAS,EAAE,MAAM;IAuCzB,UAAU,CAAE,UAAU,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI;IAuCjE,SAAS,CAAE,UAAU,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI;IAsCtE;;MAEE;IACI,cAAc,CAAE,KAAK,EAAE,sBAAsB;IAuC7C,aAAa,CAAE,KAAK,EAAE,sBAAsB;YAwCpC,cAAc;YAcd,iBAAiB;IAO/B,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,kBAAkB;YAOZ,iBAAiB;IAkB/B,OAAO,CAAC,MAAM,CAAC,wBAAwB;CAU1C;AAGD,QAAA,MAAM,oBAAoB,EAAE,OAAO,qBAAoE,CAAA;AACvG,KAAK,oBAAoB,GAAG,qBAAqB,CAAA;AAEjD,eAAe,oBAAoB,CAAA"}
|
package/build/ai-handler.d.ts
CHANGED
|
@@ -11,10 +11,14 @@ declare class AiHandler {
|
|
|
11
11
|
updateCaps(authResult: BrowserstackHealing.InitSuccessResponse | BrowserstackHealing.InitErrorResponse, options: BrowserstackOptions, caps: Array<Capabilities.ResolvedTestrunnerCapabilities> | Capabilities.ResolvedTestrunnerCapabilities): Capabilities.ResolvedTestrunnerCapabilities | Capabilities.ResolvedTestrunnerCapabilities[];
|
|
12
12
|
setToken(sessionId: string, sessionToken: string): Promise<void>;
|
|
13
13
|
installFirefoxExtension(browser: WebdriverIO.Browser): Promise<void>;
|
|
14
|
-
handleHealing(orginalFunc: (arg0: string, arg1: string) =>
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
handleHealing(orginalFunc: (arg0: string, arg1: string) => {
|
|
15
|
+
error?: string;
|
|
16
|
+
}, using: string, value: string, browser: WebdriverIO.Browser, options: BrowserstackOptions): Promise<{
|
|
17
|
+
error?: string;
|
|
18
|
+
}>;
|
|
19
|
+
addMultiRemoteCaps(authResult: BrowserstackHealing.InitSuccessResponse | BrowserstackHealing.InitErrorResponse, config: Options.Testrunner, browserStackConfig: BrowserStackConfig, options: BrowserstackOptions, caps: Capabilities.RequestedMultiremoteCapabilities, browser: string): void;
|
|
20
|
+
handleMultiRemoteSetup(authResult: BrowserstackHealing.InitSuccessResponse | BrowserstackHealing.InitErrorResponse, config: Options.Testrunner, browserStackConfig: BrowserStackConfig, options: BrowserstackOptions, caps: Capabilities.RequestedMultiremoteCapabilities): void;
|
|
21
|
+
setup(config: Options.Testrunner, browserStackConfig: BrowserStackConfig, options: BrowserstackOptions, caps: WebdriverIO.Capabilities, isMultiremote: boolean): Promise<WebdriverIO.Capabilities>;
|
|
18
22
|
handleSelfHeal(options: BrowserstackOptions, browser: WebdriverIO.Browser): Promise<void>;
|
|
19
23
|
selfHeal(options: BrowserstackOptions, caps: Capabilities.ResolvedTestrunnerCapabilities, browser: WebdriverIO.Browser): Promise<void>;
|
|
20
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-handler.d.ts","sourceRoot":"","sources":["../src/ai-handler.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,KAAK,kBAAkB,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAEpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,cAAM,SAAS;IACX,UAAU,EA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E,WAAW,CAAC,OAAO;CAoB/H;;AAED,wBAA8B"}
|
package/build/bstackLogger.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare class BStackLogger {
|
|
|
6
6
|
private static formatLog;
|
|
7
7
|
static info(message: string): void;
|
|
8
8
|
static error(message: string): void;
|
|
9
|
-
static debug(message: string, param?:
|
|
9
|
+
static debug(message: string, param?: unknown): void;
|
|
10
10
|
static warn(message: string): void;
|
|
11
11
|
static trace(message: string): void;
|
|
12
12
|
static clearLogger(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bstackLogger.d.ts","sourceRoot":"","sources":["../src/bstackLogger.ts"],"names":[],"mappings":"AAWA,qBAAa,YAAY;IACrB,OAAc,WAAW,SAAsC;IAC/D,OAAc,aAAa,SAAmC;IAC9D,OAAO,CAAC,MAAM,CAAC,aAAa,CAAuB;IAEnD,MAAM,CAAC,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAcrD,OAAO,CAAC,MAAM,CAAC,SAAS;WAIV,IAAI,CAAC,OAAO,EAAE,MAAM;WAKpB,KAAK,CAAC,OAAO,EAAE,MAAM;WAKrB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"bstackLogger.d.ts","sourceRoot":"","sources":["../src/bstackLogger.ts"],"names":[],"mappings":"AAWA,qBAAa,YAAY;IACrB,OAAc,WAAW,SAAsC;IAC/D,OAAc,aAAa,SAAmC;IAC9D,OAAO,CAAC,MAAM,CAAC,aAAa,CAAuB;IAEnD,MAAM,CAAC,SAAS,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAcrD,OAAO,CAAC,MAAM,CAAC,SAAS;WAIV,IAAI,CAAC,OAAO,EAAE,MAAM;WAKpB,KAAK,CAAC,OAAO,EAAE,MAAM;WAKrB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO;WAStC,IAAI,CAAC,OAAO,EAAE,MAAM;WAKpB,KAAK,CAAC,OAAO,EAAE,MAAM;WAKrB,WAAW;WAOX,YAAY;WAMZ,gBAAgB;CAKjC"}
|
package/build/cleanup.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { FunnelData } from './types.js';
|
|
1
2
|
export default class BStackCleanup {
|
|
2
3
|
static startCleanup(): Promise<void>;
|
|
3
|
-
static executeObservabilityCleanup(funnelData:
|
|
4
|
-
static updateO11yStopData(funnelData:
|
|
5
|
-
static sendFunnelData(funnelData:
|
|
4
|
+
static executeObservabilityCleanup(funnelData: FunnelData): Promise<void>;
|
|
5
|
+
static updateO11yStopData(funnelData: FunnelData, status: string, error?: unknown): void;
|
|
6
|
+
static sendFunnelData(funnelData: FunnelData): Promise<void>;
|
|
6
7
|
static getFunnelDataFromFile(filePath: string): any;
|
|
7
8
|
static removeFunnelDataFile(filePath?: string): void;
|
|
8
9
|
}
|
package/build/cleanup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cleanup.d.ts","sourceRoot":"","sources":["../src/cleanup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cleanup.d.ts","sourceRoot":"","sources":["../src/cleanup.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,MAAM,CAAC,OAAO,OAAO,aAAa;WACjB,YAAY;WAuBZ,2BAA2B,CAAC,UAAU,EAAE,UAAU;IAmB/D,MAAM,CAAC,kBAAkB,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,GAAE,OAAmB;WAkB/E,cAAc,CAAC,UAAU,EAAE,UAAU;IASlD,MAAM,CAAC,qBAAqB,CAAC,QAAQ,EAAE,MAAM;IAY7C,MAAM,CAAC,oBAAoB,CAAC,QAAQ,CAAC,EAAE,MAAM;CAMhD"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { Capabilities, Options } from '@wdio/types';
|
|
2
2
|
import type { BrowserstackConfig, UserConfigforReporting } from './types.js';
|
|
3
|
-
type Dict = Record<string,
|
|
3
|
+
type Dict = Record<string, string>;
|
|
4
4
|
export default class CrashReporter {
|
|
5
5
|
static userConfigForReporting: UserConfigforReporting;
|
|
6
6
|
private static credentialsForCrashReportUpload;
|
|
7
7
|
static setCredentialsForCrashReportUpload(options: BrowserstackConfig & Options.Testrunner, config: Options.Testrunner): void;
|
|
8
8
|
static setConfigDetails(userConfig: Options.Testrunner, capabilities: Capabilities.TestrunnerCapabilities, options: BrowserstackConfig & Options.Testrunner): void;
|
|
9
|
-
static uploadCrashReport(exception:
|
|
9
|
+
static uploadCrashReport(exception: string, stackTrace: string): Promise<void>;
|
|
10
10
|
static recursivelyRedactKeysFromObject(obj: Dict | Array<Dict>, keys: string[]): void;
|
|
11
11
|
static deletePIIKeysFromObject(obj: {
|
|
12
|
-
[key: string]:
|
|
12
|
+
[key: string]: unknown;
|
|
13
13
|
}): void;
|
|
14
14
|
static filterCapabilities(capabilities: Capabilities.TestrunnerCapabilities): any;
|
|
15
15
|
static filterPII(userConfig: Options.Testrunner): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crash-reporter.d.ts","sourceRoot":"","sources":["../src/crash-reporter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAGxD,OAAO,KAAK,EAAE,kBAAkB,EAAmC,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAI7G,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"crash-reporter.d.ts","sourceRoot":"","sources":["../src/crash-reporter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAGxD,OAAO,KAAK,EAAE,kBAAkB,EAAmC,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAI7G,KAAK,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;AAElC,MAAM,CAAC,OAAO,OAAO,aAAa;IAE9B,OAAc,sBAAsB,EAAE,sBAAsB,CAAK;IAEjE,OAAO,CAAC,MAAM,CAAC,+BAA+B,CAAsC;IAEpF,MAAM,CAAC,kCAAkC,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,UAAU;IAQtH,MAAM,CAAC,gBAAgB,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,YAAY,EAAE,YAAY,CAAC,sBAAsB,EAAE,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,UAAU;WAiB9I,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;IAsDpE,MAAM,CAAC,+BAA+B,CAAC,GAAG,EAAE,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;IAiB9E,MAAM,CAAC,uBAAuB,CAAC,GAAG,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC;IAO5D,MAAM,CAAC,kBAAkB,CAAC,YAAY,EAAE,YAAY,CAAC,sBAAsB;IAM3E,MAAM,CAAC,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,UAAU;CA2BlD"}
|
package/build/data-store.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-store.d.ts","sourceRoot":"","sources":["../src/data-store.ts"],"names":[],"mappings":"AAOA,wBAAgB,kBAAkB,6BAoBjC;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"data-store.d.ts","sourceRoot":"","sources":["../src/data-store.ts"],"names":[],"mappings":"AAOA,wBAAgB,kBAAkB,6BAoBjC;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAS3D"}
|
package/build/index.d.ts
CHANGED
|
@@ -5,7 +5,12 @@ import logReportingAPI from './logReportingAPI.js';
|
|
|
5
5
|
export default BrowserstackService;
|
|
6
6
|
export declare const launcher: typeof BrowserstackLauncher;
|
|
7
7
|
export declare const log4jsAppender: {
|
|
8
|
-
configure: (config:
|
|
8
|
+
configure: (config: {
|
|
9
|
+
timezoneOffset: string;
|
|
10
|
+
layout: {
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
}, layouts: any) => Function;
|
|
9
14
|
};
|
|
10
15
|
export declare const BStackTestOpsLogger: typeof logReportingAPI;
|
|
11
16
|
import * as Percy from './Percy/PercySDK.js';
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,oBAAoB,MAAM,eAAe,CAAA;AAChD,OAAO,mBAAmB,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,OAAO,eAAe,MAAM,sBAAsB,CAAA;AAElD,eAAe,mBAAmB,CAAA;AAClC,eAAO,MAAM,QAAQ,6BAAuB,CAAA;AAC5C,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,oBAAoB,MAAM,eAAe,CAAA;AAChD,OAAO,mBAAmB,MAAM,cAAc,CAAA;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAEpD,OAAO,eAAe,MAAM,sBAAsB,CAAA;AAElD,eAAe,mBAAmB,CAAA;AAClC,eAAO,MAAM,QAAQ,6BAAuB,CAAA;AAC5C,eAAO,MAAM,cAAc;;;;;;;CAAgB,CAAA;AAC3C,eAAO,MAAM,mBAAmB,wBAAkB,CAAA;AAElD,OAAO,KAAK,KAAK,MAAM,qBAAqB,CAAA;AAC5C,eAAO,MAAM,QAAQ,cAAQ,CAAA;AAE7B,cAAc,YAAY,CAAA;AAE1B,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,aAAc,SAAQ,kBAAkB;SAAG;KACxD;CACJ"}
|
package/build/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import * as BrowserstackLocalLauncher from "browserstack-local";
|
|
|
18
18
|
// package.json
|
|
19
19
|
var package_default = {
|
|
20
20
|
name: "@wdio/browserstack-service",
|
|
21
|
-
version: "9.4.
|
|
21
|
+
version: "9.4.3",
|
|
22
22
|
description: "WebdriverIO service for better Browserstack integration",
|
|
23
23
|
author: "Adam Bjerstedt <abjerstedt@gmail.com>",
|
|
24
24
|
homepage: "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-browserstack-service",
|
|
@@ -184,9 +184,6 @@ var LOG_LEVELS = {
|
|
|
184
184
|
WARN: "WARN"
|
|
185
185
|
};
|
|
186
186
|
var logPatcher = class extends Transport {
|
|
187
|
-
constructor(opts) {
|
|
188
|
-
super(opts);
|
|
189
|
-
}
|
|
190
187
|
logToTestOps = (level = LOG_LEVELS.INFO, message = [""]) => {
|
|
191
188
|
process.emit(`bs:addLog:${process.pid}`, {
|
|
192
189
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
@@ -425,7 +422,9 @@ var CrashReporter = class {
|
|
|
425
422
|
if (Array.isArray(serviceArray) && serviceArray.length >= 2 && serviceArray[0] === "browserstack") {
|
|
426
423
|
for (let idx = 1; idx < serviceArray.length; idx++) {
|
|
427
424
|
this.deletePIIKeysFromObject(serviceArray[idx]);
|
|
428
|
-
|
|
425
|
+
if (serviceArray[idx]) {
|
|
426
|
+
this.deletePIIKeysFromObject(serviceArray[idx].testObservabilityOptions);
|
|
427
|
+
}
|
|
429
428
|
}
|
|
430
429
|
finalServices.push(serviceArray);
|
|
431
430
|
break;
|
|
@@ -778,7 +777,7 @@ var AccessibilityScripts = class _AccessibilityScripts {
|
|
|
778
777
|
this.update(JSON.parse(data));
|
|
779
778
|
}
|
|
780
779
|
}
|
|
781
|
-
} catch
|
|
780
|
+
} catch {
|
|
782
781
|
}
|
|
783
782
|
}
|
|
784
783
|
update(data) {
|
|
@@ -864,10 +863,10 @@ function processError(error, fn, args) {
|
|
|
864
863
|
let argsString;
|
|
865
864
|
try {
|
|
866
865
|
argsString = JSON.stringify(args);
|
|
867
|
-
} catch
|
|
866
|
+
} catch {
|
|
868
867
|
argsString = util.inspect(args, { depth: 2 });
|
|
869
868
|
}
|
|
870
|
-
CrashReporter.uploadCrashReport(`Error in executing ${fn.name} with args ${argsString} : ${error}`, error && error.stack);
|
|
869
|
+
CrashReporter.uploadCrashReport(`Error in executing ${fn.name} with args ${argsString} : ${error}`, error && error.stack || "unknown error");
|
|
871
870
|
}
|
|
872
871
|
function o11yErrorHandler(fn) {
|
|
873
872
|
return function(...args) {
|
|
@@ -904,9 +903,12 @@ async function nodeRequest(requestType, apiEndpoint, options, apiUrl, timeout =
|
|
|
904
903
|
const errorMessageJson = error.response.body ? JSON.parse(error.response.body.toString()) : null;
|
|
905
904
|
const errorMessage = errorMessageJson ? errorMessageJson.message : null;
|
|
906
905
|
if (errorMessage) {
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
906
|
+
const message = `${errorMessage} - ${error.stack}`;
|
|
907
|
+
if (isLogUpload) {
|
|
908
|
+
BStackLogger.debug(message);
|
|
909
|
+
} else {
|
|
910
|
+
BStackLogger.error(message);
|
|
911
|
+
}
|
|
910
912
|
}
|
|
911
913
|
if (isLogUpload) {
|
|
912
914
|
return;
|
|
@@ -1927,11 +1929,11 @@ var BStackLogger = class {
|
|
|
1927
1929
|
// src/testHub/utils.ts
|
|
1928
1930
|
var getProductMap = (config) => {
|
|
1929
1931
|
return {
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1932
|
+
observability: config.testObservability.enabled,
|
|
1933
|
+
accessibility: config.accessibility,
|
|
1934
|
+
percy: config.percy,
|
|
1935
|
+
automate: config.automate,
|
|
1936
|
+
app_automate: config.appAutomate
|
|
1935
1937
|
};
|
|
1936
1938
|
};
|
|
1937
1939
|
var shouldProcessEventForTesthub = (eventType) => {
|
|
@@ -2092,7 +2094,7 @@ var PercyBinary = class {
|
|
|
2092
2094
|
if (hasDir) {
|
|
2093
2095
|
return true;
|
|
2094
2096
|
}
|
|
2095
|
-
} catch
|
|
2097
|
+
} catch {
|
|
2096
2098
|
return false;
|
|
2097
2099
|
}
|
|
2098
2100
|
}
|
|
@@ -2222,12 +2224,12 @@ var Percy = class {
|
|
|
2222
2224
|
}
|
|
2223
2225
|
async healthcheck() {
|
|
2224
2226
|
try {
|
|
2225
|
-
const resp = await nodeRequest("GET", "percy/healthcheck",
|
|
2227
|
+
const resp = await nodeRequest("GET", "percy/healthcheck", {}, this.#address);
|
|
2226
2228
|
if (resp) {
|
|
2227
2229
|
this.buildId = resp.build.id;
|
|
2228
2230
|
return true;
|
|
2229
2231
|
}
|
|
2230
|
-
} catch
|
|
2232
|
+
} catch {
|
|
2231
2233
|
return false;
|
|
2232
2234
|
}
|
|
2233
2235
|
}
|
|
@@ -2360,8 +2362,8 @@ var stopPercy = async (percy) => {
|
|
|
2360
2362
|
var getBestPlatformForPercySnapshot = (capabilities) => {
|
|
2361
2363
|
try {
|
|
2362
2364
|
const percyBrowserPreference = { "chrome": 0, "firefox": 1, "edge": 2, "safari": 3 };
|
|
2363
|
-
let bestPlatformCaps
|
|
2364
|
-
let bestBrowser
|
|
2365
|
+
let bestPlatformCaps;
|
|
2366
|
+
let bestBrowser;
|
|
2365
2367
|
if (Array.isArray(capabilities)) {
|
|
2366
2368
|
capabilities.flatMap((c) => {
|
|
2367
2369
|
if ("alwaysMatch" in c) {
|
|
@@ -2638,7 +2640,7 @@ var sendEvent = {
|
|
|
2638
2640
|
tcgProxyFailure: (config) => fireFunnelTestEvent("SDKTestTcgProxyFailure", config)
|
|
2639
2641
|
};
|
|
2640
2642
|
function isProxyError(authResult) {
|
|
2641
|
-
return authResult
|
|
2643
|
+
return authResult?.status === 502;
|
|
2642
2644
|
}
|
|
2643
2645
|
function handleProxyError(config, isSelfHealEnabled) {
|
|
2644
2646
|
sendEvent.tcgProxyFailure(config);
|
|
@@ -2820,7 +2822,7 @@ var AiHandler = class {
|
|
|
2820
2822
|
return await orginalFunc(using, value);
|
|
2821
2823
|
}
|
|
2822
2824
|
addMultiRemoteCaps(authResult, config, browserStackConfig, options, caps, browser) {
|
|
2823
|
-
if (caps[browser].capabilities && !isBrowserstackInfra(caps[browser]) && SUPPORTED_BROWSERS_FOR_AI.includes(caps[browser]?.capabilities?.browserName?.toLowerCase())) {
|
|
2825
|
+
if (caps[browser].capabilities && !isBrowserstackInfra(caps[browser]) && SUPPORTED_BROWSERS_FOR_AI.includes(caps[browser]?.capabilities?.browserName?.toLowerCase() || "unknown browser")) {
|
|
2824
2826
|
const innerConfig = getBrowserStackUserAndKey(config, options);
|
|
2825
2827
|
if (innerConfig?.user && innerConfig.key) {
|
|
2826
2828
|
handleHealingInstrumentation(authResult, browserStackConfig, options.selfHeal);
|
|
@@ -2841,7 +2843,7 @@ var AiHandler = class {
|
|
|
2841
2843
|
if (innerConfig?.user && innerConfig.key) {
|
|
2842
2844
|
const authResult = await this.authenticateUser(innerConfig.user, innerConfig.key);
|
|
2843
2845
|
process.env[BSTACK_TCG_AUTH_RESULT] = JSON.stringify(authResult);
|
|
2844
|
-
if (!isMultiremote && SUPPORTED_BROWSERS_FOR_AI.includes(caps
|
|
2846
|
+
if (!isMultiremote && SUPPORTED_BROWSERS_FOR_AI.includes(caps.browserName?.toLowerCase() || "unknown browser")) {
|
|
2845
2847
|
handleHealingInstrumentation(authResult, browserStackConfig, options.selfHeal);
|
|
2846
2848
|
this.updateCaps(authResult, options, caps);
|
|
2847
2849
|
} else if (isMultiremote) {
|
|
@@ -2902,7 +2904,9 @@ var BrowserstackLauncherService = class {
|
|
|
2902
2904
|
BStackLogger.clearLogFile();
|
|
2903
2905
|
PercyLogger.clearLogFile();
|
|
2904
2906
|
setupExitHandlers();
|
|
2905
|
-
|
|
2907
|
+
if (!this._config) {
|
|
2908
|
+
this._config = _options;
|
|
2909
|
+
}
|
|
2906
2910
|
this.browserStackConfig = config_default.getInstance(_options, _config);
|
|
2907
2911
|
if (Array.isArray(capabilities)) {
|
|
2908
2912
|
capabilities.flatMap((c) => {
|
|
@@ -3043,7 +3047,7 @@ var BrowserstackLauncherService = class {
|
|
|
3043
3047
|
try {
|
|
3044
3048
|
app = await this._validateApp(appConfig);
|
|
3045
3049
|
} catch (error) {
|
|
3046
|
-
throw new SevereServiceError(error);
|
|
3050
|
+
throw new SevereServiceError(error.message);
|
|
3047
3051
|
}
|
|
3048
3052
|
if (VALID_APP_EXTENSION.includes(path11.extname(app.app))) {
|
|
3049
3053
|
if (fs11.existsSync(app.app)) {
|
|
@@ -3217,7 +3221,9 @@ Visit https://observability.browserstack.com/builds/${process.env[BROWSERSTACK_T
|
|
|
3217
3221
|
let signal = 0;
|
|
3218
3222
|
const handler = async () => {
|
|
3219
3223
|
signal++;
|
|
3220
|
-
signal === 1
|
|
3224
|
+
if (signal === 1) {
|
|
3225
|
+
await this.stopPercy();
|
|
3226
|
+
}
|
|
3221
3227
|
};
|
|
3222
3228
|
process.on("beforeExit", handler);
|
|
3223
3229
|
process.on("SIGINT", handler);
|
|
@@ -3556,7 +3562,7 @@ Visit https://observability.browserstack.com/builds/${process.env[BROWSERSTACK_T
|
|
|
3556
3562
|
const newIdentifier = 1;
|
|
3557
3563
|
this._updateLocalBuildCache(filePath, this._buildName, 1);
|
|
3558
3564
|
return newIdentifier.toString();
|
|
3559
|
-
} catch
|
|
3565
|
+
} catch {
|
|
3560
3566
|
return null;
|
|
3561
3567
|
}
|
|
3562
3568
|
}
|
|
@@ -3641,7 +3647,7 @@ var RequestQueueHandler = class _RequestQueueHandler {
|
|
|
3641
3647
|
}
|
|
3642
3648
|
callCallback = async (data, kind) => {
|
|
3643
3649
|
BStackLogger.debug("calling callback with kind " + kind);
|
|
3644
|
-
|
|
3650
|
+
await this.callback?.(data);
|
|
3645
3651
|
};
|
|
3646
3652
|
resetEventBatchPolling() {
|
|
3647
3653
|
this.removeEventBatchPolling("Resetting");
|
|
@@ -3888,7 +3894,7 @@ var Listener = class _Listener {
|
|
|
3888
3894
|
await batchAndPostEvents(DATA_BATCH_ENDPOINT, "BATCH_DATA", data);
|
|
3889
3895
|
BStackLogger.debug("callback: marking events success " + data.length);
|
|
3890
3896
|
this.eventsSuccess(data);
|
|
3891
|
-
} catch
|
|
3897
|
+
} catch {
|
|
3892
3898
|
BStackLogger.debug("callback: marking events failed " + data.length);
|
|
3893
3899
|
this.eventsFailed(data);
|
|
3894
3900
|
} finally {
|
|
@@ -4024,7 +4030,7 @@ var _TestReporter = class __TestReporter extends WDIOReporter {
|
|
|
4024
4030
|
if (filename === "unknown spec file") {
|
|
4025
4031
|
filename = this._suiteName || suiteStats.file;
|
|
4026
4032
|
}
|
|
4027
|
-
} catch
|
|
4033
|
+
} catch {
|
|
4028
4034
|
BStackLogger.debug("Error in decoding file name of suite");
|
|
4029
4035
|
}
|
|
4030
4036
|
}
|
|
@@ -4643,6 +4649,7 @@ var _InsightsHandler = class {
|
|
|
4643
4649
|
/*
|
|
4644
4650
|
* private methods
|
|
4645
4651
|
*/
|
|
4652
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4646
4653
|
attachHookData(context, hookId) {
|
|
4647
4654
|
if (context.currentTest && context.currentTest.parent) {
|
|
4648
4655
|
const parentTest = `${context.currentTest.parent.title} - ${context.currentTest.title}`;
|
|
@@ -4655,6 +4662,7 @@ var _InsightsHandler = class {
|
|
|
4655
4662
|
this.setHooksFromSuite(context.test.parent, hookId);
|
|
4656
4663
|
}
|
|
4657
4664
|
}
|
|
4665
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4658
4666
|
setHooksFromSuite(parent, hookId) {
|
|
4659
4667
|
if (!parent) {
|
|
4660
4668
|
return false;
|
|
@@ -4754,6 +4762,7 @@ var _InsightsHandler = class {
|
|
|
4754
4762
|
}
|
|
4755
4763
|
return testData;
|
|
4756
4764
|
}
|
|
4765
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4757
4766
|
getTestRunId(context) {
|
|
4758
4767
|
if (!context) {
|
|
4759
4768
|
return;
|
|
@@ -4767,6 +4776,7 @@ var _InsightsHandler = class {
|
|
|
4767
4776
|
}
|
|
4768
4777
|
return this.getTestRunIdFromSuite(context.test.parent);
|
|
4769
4778
|
}
|
|
4779
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4770
4780
|
getTestRunIdFromSuite(parent) {
|
|
4771
4781
|
if (!parent) {
|
|
4772
4782
|
return;
|
|
@@ -4915,10 +4925,7 @@ import util3 from "node:util";
|
|
|
4915
4925
|
var _AccessibilityHandler = class {
|
|
4916
4926
|
constructor(_browser, _capabilities, isAppAutomate, _framework, _accessibilityAutomation, _accessibilityOpts) {
|
|
4917
4927
|
this._browser = _browser;
|
|
4918
|
-
this._capabilities = _capabilities;
|
|
4919
4928
|
this._framework = _framework;
|
|
4920
|
-
this._accessibilityAutomation = _accessibilityAutomation;
|
|
4921
|
-
this._accessibilityOpts = _accessibilityOpts;
|
|
4922
4929
|
const caps = this._browser.capabilities;
|
|
4923
4930
|
this._platformA11yMeta = {
|
|
4924
4931
|
browser_name: caps.browserName,
|
|
@@ -5144,7 +5151,7 @@ var _AccessibilityHandler = class {
|
|
|
5144
5151
|
const currentURL = await browser.getUrl();
|
|
5145
5152
|
const url3 = new URL(currentURL);
|
|
5146
5153
|
pageOpen = url3?.protocol === "http:" || url3?.protocol === "https:";
|
|
5147
|
-
} catch
|
|
5154
|
+
} catch {
|
|
5148
5155
|
pageOpen = false;
|
|
5149
5156
|
}
|
|
5150
5157
|
return pageOpen;
|
|
@@ -5287,7 +5294,6 @@ var _PercyHandler = class {
|
|
|
5287
5294
|
this._percyAutoCaptureMode = "auto";
|
|
5288
5295
|
}
|
|
5289
5296
|
}
|
|
5290
|
-
_testMetadata = {};
|
|
5291
5297
|
_sessionName;
|
|
5292
5298
|
_isPercyCleanupProcessingUnderway = false;
|
|
5293
5299
|
_percyScreenshotCounter = 0;
|
|
@@ -5332,7 +5338,7 @@ var _PercyHandler = class {
|
|
|
5332
5338
|
isDOMChangingCommand(args) {
|
|
5333
5339
|
return typeof args.method === "string" && typeof args.endpoint === "string" && (args.method === "POST" && (PERCY_DOM_CHANGING_COMMANDS_ENDPOINTS.includes(args.endpoint) || /* click / clear element */
|
|
5334
5340
|
args.endpoint.includes("/session/:sessionId/element") && (args.endpoint.includes("click") || args.endpoint.includes("clear")) || /* execute script sync / async */
|
|
5335
|
-
args.endpoint.includes("/session/:sessionId/execute") && args.body
|
|
5341
|
+
Boolean(args.endpoint.includes("/session/:sessionId/execute") && args.body.script) || /* Touch action for Appium */
|
|
5336
5342
|
args.endpoint.includes("/session/:sessionId/touch")) || args.method === "DELETE" && args.endpoint === "/session/:sessionId");
|
|
5337
5343
|
}
|
|
5338
5344
|
async cleanupDeferredScreenshots() {
|
|
@@ -5353,7 +5359,9 @@ var _PercyHandler = class {
|
|
|
5353
5359
|
} while (this._percyScreenshotInterval);
|
|
5354
5360
|
this._percyScreenshotInterval = setInterval(async () => {
|
|
5355
5361
|
if (!this._isPercyCleanupProcessingUnderway) {
|
|
5356
|
-
|
|
5362
|
+
if (this._percyScreenshotInterval) {
|
|
5363
|
+
clearInterval(this._percyScreenshotInterval);
|
|
5364
|
+
}
|
|
5357
5365
|
await this.cleanupDeferredScreenshots();
|
|
5358
5366
|
this._percyScreenshotInterval = null;
|
|
5359
5367
|
}
|
|
@@ -5374,7 +5382,8 @@ var _PercyHandler = class {
|
|
|
5374
5382
|
} else if (endpoint.includes("screenshot") && ["screenshot", "auto"].includes(this._percyAutoCaptureMode)) {
|
|
5375
5383
|
eventName = "screenshot";
|
|
5376
5384
|
} else if (endpoint.includes("actions") && ["auto"].includes(this._percyAutoCaptureMode)) {
|
|
5377
|
-
|
|
5385
|
+
const actionsBody = args.body.actions;
|
|
5386
|
+
if (actionsBody && Array.isArray(actionsBody) && actionsBody.length && actionsBody[0].type === "key") {
|
|
5378
5387
|
eventName = "keys";
|
|
5379
5388
|
}
|
|
5380
5389
|
} else if (endpoint.includes("/session/:sessionId/element") && endpoint.includes("value") && ["auto"].includes(this._percyAutoCaptureMode)) {
|
|
@@ -5407,7 +5416,9 @@ var BrowserstackService = class {
|
|
|
5407
5416
|
this._caps = _caps;
|
|
5408
5417
|
this._config = _config;
|
|
5409
5418
|
this._options = { ...DEFAULT_OPTIONS, ...options };
|
|
5410
|
-
|
|
5419
|
+
if (!this._config) {
|
|
5420
|
+
this._config = this._options;
|
|
5421
|
+
}
|
|
5411
5422
|
this._observability = this._options.testObservability;
|
|
5412
5423
|
this._accessibility = this._options.accessibility;
|
|
5413
5424
|
this._percy = isTrue(process.env.BROWSERSTACK_PERCY);
|
|
@@ -5542,7 +5553,7 @@ var BrowserstackService = class {
|
|
|
5542
5553
|
} catch (err) {
|
|
5543
5554
|
BStackLogger.error(`Error in service class before function: ${err}`);
|
|
5544
5555
|
if (shouldProcessEventForTesthub("")) {
|
|
5545
|
-
CrashReporter.uploadCrashReport(`Error in service class before function: ${err}`, err
|
|
5556
|
+
CrashReporter.uploadCrashReport(`Error in service class before function: ${err}`, err ? err.stack : "unknown error");
|
|
5546
5557
|
}
|
|
5547
5558
|
}
|
|
5548
5559
|
if (this._percy) {
|
|
@@ -32,7 +32,7 @@ declare class _InsightsHandler {
|
|
|
32
32
|
setCurrentHook(hookDetails: CurrentRunInfo): void;
|
|
33
33
|
sendScenarioObjectSkipped(scenario: Scenario, feature: Feature, uri: string): Promise<void>;
|
|
34
34
|
processCucumberHook(test: CucumberHook | undefined, params: CucumberHookParams, result?: Frameworks.TestResult): Promise<void>;
|
|
35
|
-
beforeHook(test: Frameworks.Test | CucumberHook | undefined, context:
|
|
35
|
+
beforeHook(test: Frameworks.Test | CucumberHook | undefined, context: unknown): Promise<void>;
|
|
36
36
|
afterHook(test: Frameworks.Test | CucumberHook | undefined, result: Frameworks.TestResult): Promise<void>;
|
|
37
37
|
getHookRunDataForCucumber(hookData: TestMeta, eventType: string, result?: Frameworks.TestResult): TestData;
|
|
38
38
|
beforeTest(test: Frameworks.Test): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insights-handler.d.ts","sourceRoot":"","sources":["../src/insights-handler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAGzE,OAAO,KAAK,EAAiB,OAAO,EAAE,QAAQ,EAAsB,YAAY,EAAE,kBAAkB,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAGjK,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAiBzE,OAAO,KAAK,EACR,QAAQ,EACR,QAAQ,EAER,cAAc,EACd,MAAM,EACN,OAAO,
|
|
1
|
+
{"version":3,"file":"insights-handler.d.ts","sourceRoot":"","sources":["../src/insights-handler.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AAGzE,OAAO,KAAK,EAAiB,OAAO,EAAE,QAAQ,EAAsB,YAAY,EAAE,kBAAkB,EAAE,MAAM,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAGjK,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB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AAG,sBAAsB;IAsDtI,OAAO,CAAC,cAAc;IAetB,OAAO,CAAC,iBAAiB;IA0BzB,OAAO,CAAC,YAAY;IAiBpB,OAAO,CAAC,UAAU;IA2ElB,OAAO,CAAC,YAAY;IAiBpB,OAAO,CAAC,qBAAqB;IAoB7B,OAAO,CAAC,yBAAyB;IA0FpB,iBAAiB;IASxB,WAAW;IAqBjB,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,aAAa;CAMxB;AAGD,QAAA,MAAM,eAAe,EAAE,OAAO,gBAA0D,CAAA;AACxF,KAAK,eAAe,GAAG,gBAAgB,CAAA;AAEvC,eAAe,eAAe,CAAA"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import type BrowserStackConfig from '../config.js';
|
|
2
|
-
import type {
|
|
2
|
+
import type { FunnelData } from '../types.js';
|
|
3
3
|
export declare function sendStart(config: BrowserStackConfig): Promise<void>;
|
|
4
4
|
export declare function sendFinish(config: BrowserStackConfig): Promise<void>;
|
|
5
5
|
export declare function saveFunnelData(eventType: string, config: BrowserStackConfig): string;
|
|
6
|
-
export declare function fireFunnelRequest(data:
|
|
7
|
-
|
|
6
|
+
export declare function fireFunnelRequest(data: FunnelData): Promise<void>;
|
|
7
|
+
interface AuthResult {
|
|
8
|
+
message: string;
|
|
9
|
+
isAuthenticated: boolean;
|
|
10
|
+
status: number;
|
|
11
|
+
userId: string;
|
|
12
|
+
groupId: string;
|
|
13
|
+
isHealingEnabled: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function handleHealingInstrumentation(authResult: AuthResult, config: BrowserStackConfig, isSelfHealEnabled: boolean | undefined): void;
|
|
16
|
+
export {};
|
|
8
17
|
//# sourceMappingURL=funnelInstrumentation.d.ts.map
|