@appium/driver-test-support 0.2.0 → 0.3.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/lib/e2e-suite.d.ts +12 -12
- package/build/lib/e2e-suite.d.ts.map +1 -1
- package/build/lib/e2e-suite.js +404 -376
- package/build/lib/e2e-suite.js.map +1 -0
- package/build/lib/helpers.js +62 -40
- package/build/lib/helpers.js.map +1 -0
- package/build/lib/index.d.ts +3 -3
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +30 -45
- package/build/lib/index.js.map +1 -0
- package/build/lib/unit-suite.d.ts +4 -6
- package/build/lib/unit-suite.d.ts.map +1 -1
- package/build/lib/unit-suite.js +560 -544
- package/build/lib/unit-suite.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/lib/e2e-suite.js +13 -7
- package/lib/index.js +8 -3
- package/lib/unit-suite.js +8 -3
- package/package.json +10 -15
package/build/lib/e2e-suite.d.ts
CHANGED
|
@@ -11,32 +11,32 @@ export function createSessionHelpers<CommandData = unknown, ResponseData = any>(
|
|
|
11
11
|
* Creates E2E test suites for a driver.
|
|
12
12
|
* @template {Driver} P
|
|
13
13
|
* @param {DriverClass<P>} DriverClass
|
|
14
|
-
* @param {
|
|
14
|
+
* @param {Partial<BaseNSCapabilities>} [defaultCaps]
|
|
15
15
|
*/
|
|
16
|
-
export function driverE2ETestSuite<P extends import("@appium/types").Driver
|
|
17
|
-
[x: `${string}:${string}`]: any;
|
|
18
|
-
}> | undefined): void;
|
|
16
|
+
export function driverE2ETestSuite<P extends import("@appium/types").Driver<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, import("@appium/types").StringRecord, any>>(DriverClass: DriverClass<P>, defaultCaps?: Partial<import("@appium/types").CapsToNSCaps<import("@appium/types").ConstraintsToCaps<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS>, "appium">> | undefined): void;
|
|
19
17
|
/**
|
|
20
18
|
* A {@linkcode DriverClass }, except using the base {@linkcode Driver } type instead of `ExternalDriver`.
|
|
21
19
|
* This allows the suite to work for `BaseDriver`.
|
|
22
20
|
*/
|
|
23
|
-
export type DriverClass<P extends import("@appium/types").Driver
|
|
24
|
-
export type Capabilities = import('@appium/types').Capabilities;
|
|
21
|
+
export type DriverClass<P extends import("@appium/types").Driver<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, import("@appium/types").StringRecord, any>> = import('@appium/types').DriverClass<P>;
|
|
25
22
|
export type Driver = import('@appium/types').Driver;
|
|
26
|
-
export type
|
|
27
|
-
export type
|
|
23
|
+
export type Constraints = import('@appium/types').Constraints;
|
|
24
|
+
export type DriverStatic = import("@appium/types").DriverStatic<any>;
|
|
25
|
+
export type StringRecord = import('@appium/types').StringRecord;
|
|
26
|
+
export type BaseDriverCapConstraints = import('@appium/types').BaseDriverCapConstraints;
|
|
27
|
+
export type BaseNSCapabilities = import('@appium/types').BaseNSCapabilities;
|
|
28
28
|
export type AxiosRequestConfig = import('axios').AxiosRequestConfig;
|
|
29
29
|
export type SingularSessionData = import('@appium/types').SingularSessionData;
|
|
30
30
|
export type AxiosResponse<T, D> = import('axios').AxiosResponse<T, D>;
|
|
31
|
-
export type NewSessionData = {
|
|
32
|
-
capabilities: import('type-fest').RequireAtLeastOne<import('@appium/types').W3CCapabilities, 'firstMatch' | 'alwaysMatch'>;
|
|
31
|
+
export type NewSessionData<C extends Readonly<Record<string, import("@appium/types").Constraint>> = typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, Extra extends void | import("@appium/types").StringRecord = void> = {
|
|
32
|
+
capabilities: import('type-fest').RequireAtLeastOne<import('@appium/types').W3CCapabilities<C, Extra>, 'firstMatch' | 'alwaysMatch'>;
|
|
33
33
|
};
|
|
34
|
-
export type NewSessionResponse = {
|
|
34
|
+
export type NewSessionResponse<C extends Readonly<Record<string, import("@appium/types").Constraint>> = typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS, Extra extends void | import("@appium/types").StringRecord = void> = {
|
|
35
35
|
/**
|
|
36
36
|
* ,
|
|
37
37
|
*/
|
|
38
38
|
sessionId: string;
|
|
39
|
-
capabilities: import('@appium/types').Capabilities
|
|
39
|
+
capabilities: import('@appium/types').Capabilities<C, Extra>;
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
42
|
* Some E2E helpers for making requests and managing sessions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e2e-suite.d.ts","sourceRoot":"","sources":["../../lib/e2e-suite.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,sFAJW,MAAM,2EAmFhB;AAED;;;;;GAKG;AACH
|
|
1
|
+
{"version":3,"file":"e2e-suite.d.ts","sourceRoot":"","sources":["../../lib/e2e-suite.js"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,sFAJW,MAAM,2EAmFhB;AAED;;;;;GAKG;AACH,mZAyTC;;;;;4KAMY,OAAO,eAAe,EAAE,WAAW,CAAC,CAAC,CAAC;qBAItC,OAAO,eAAe,EAAE,MAAM;0BAC9B,OAAO,eAAe,EAAE,WAAW;;2BAEnC,OAAO,eAAe,EAAE,YAAY;uCACpC,OAAO,eAAe,EAAE,wBAAwB;iCAChD,OAAO,eAAe,EAAE,kBAAkB;iCAC1C,OAAO,OAAO,EAAE,kBAAkB;kCAClC,OAAO,eAAe,EAAE,mBAAmB;kCAK3C,OAAO,OAAO,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC;;kBAOlC,OAAO,WAAW,EAAE,iBAAiB,CAAC,OAAO,eAAe,EAAE,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,YAAY,GAAC,aAAa,CAAC;;;;;;eAOpH,MAAM;kBACN,OAAO,eAAe,EAAE,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;;;;;;;;;;mBAS9C,MAAM;;;;yBACC,cAAc,WAAW,kBAAkB,KAAK,QAAQ,kBAAkB,CAAC;;;;4BACtE,MAAM,KAAK,QAAQ,cAAc;QAAC,KAAK,EAAE;YAAC,KAAK,CAAC,EAAE,MAAM,CAAA;SAAC,QAAC;KAAC,EAAE;QAAC,cAAc,EAAE,IAAI,CAAA;KAAC,CAAC,CAAC;;;;4BACrF,MAAM,KAAK,QAAQ,mBAAmB,CAAC;;;;6BACvC,MAAM,WAAW,MAAM,SAAS,WAAW,WAAW,kBAAkB,KAAK,QAAQ,YAAY,CAAC;;;;qCACzF,MAAM,mBAAmB,MAAM,GAAC,kBAAkB,WAAW,kBAAkB,KAAK,QAAQ,YAAY,CAAC"}
|