@appium/driver-test-support 0.2.1 → 0.3.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.
- package/build/lib/e2e-suite.d.ts +5 -255
- package/build/lib/e2e-suite.d.ts.map +1 -1
- package/build/lib/e2e-suite.js +404 -375
- package/build/lib/e2e-suite.js.map +1 -1
- package/build/lib/helpers.js +62 -40
- package/build/lib/helpers.js.map +1 -1
- package/build/lib/index.d.ts +1 -51
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +30 -52
- package/build/lib/index.js.map +1 -1
- package/build/lib/unit-suite.d.ts +2 -112
- 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 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -14
package/build/lib/e2e-suite.d.ts
CHANGED
|
@@ -13,275 +13,25 @@ export function createSessionHelpers<CommandData = unknown, ResponseData = any>(
|
|
|
13
13
|
* @param {DriverClass<P>} DriverClass
|
|
14
14
|
* @param {Partial<BaseNSCapabilities>} [defaultCaps]
|
|
15
15
|
*/
|
|
16
|
-
export function driverE2ETestSuite<P extends import("@appium/types").Driver<
|
|
17
|
-
readonly platformName: {
|
|
18
|
-
readonly presence: true;
|
|
19
|
-
readonly isString: true;
|
|
20
|
-
};
|
|
21
|
-
readonly app: {
|
|
22
|
-
readonly isString: true;
|
|
23
|
-
};
|
|
24
|
-
readonly deviceName: {
|
|
25
|
-
readonly isString: true;
|
|
26
|
-
};
|
|
27
|
-
readonly platformVersion: {
|
|
28
|
-
readonly isString: true;
|
|
29
|
-
};
|
|
30
|
-
readonly newCommandTimeout: {
|
|
31
|
-
readonly isNumber: true;
|
|
32
|
-
};
|
|
33
|
-
readonly automationName: {
|
|
34
|
-
readonly isString: true;
|
|
35
|
-
};
|
|
36
|
-
readonly autoLaunch: {
|
|
37
|
-
readonly isBoolean: true;
|
|
38
|
-
};
|
|
39
|
-
readonly udid: {
|
|
40
|
-
readonly isString: true;
|
|
41
|
-
};
|
|
42
|
-
readonly orientation: {
|
|
43
|
-
readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
|
|
44
|
-
};
|
|
45
|
-
readonly autoWebview: {
|
|
46
|
-
readonly isBoolean: true;
|
|
47
|
-
};
|
|
48
|
-
readonly noReset: {
|
|
49
|
-
readonly isBoolean: true;
|
|
50
|
-
};
|
|
51
|
-
readonly fullReset: {
|
|
52
|
-
readonly isBoolean: true;
|
|
53
|
-
};
|
|
54
|
-
readonly language: {
|
|
55
|
-
readonly isString: true;
|
|
56
|
-
};
|
|
57
|
-
readonly locale: {
|
|
58
|
-
readonly isString: true;
|
|
59
|
-
};
|
|
60
|
-
readonly eventTimings: {
|
|
61
|
-
readonly isBoolean: true;
|
|
62
|
-
};
|
|
63
|
-
readonly printPageSourceOnFindFailure: {
|
|
64
|
-
readonly isBoolean: true;
|
|
65
|
-
};
|
|
66
|
-
}, import("@appium/types").StringRecord>>(DriverClass: DriverClass<P>, defaultCaps?: Partial<import("@appium/types").CapsToNSCaps<import("@appium/types").ConstraintsToCaps<{
|
|
67
|
-
readonly platformName: {
|
|
68
|
-
readonly presence: true;
|
|
69
|
-
readonly isString: true;
|
|
70
|
-
};
|
|
71
|
-
readonly app: {
|
|
72
|
-
readonly isString: true;
|
|
73
|
-
};
|
|
74
|
-
readonly deviceName: {
|
|
75
|
-
readonly isString: true;
|
|
76
|
-
};
|
|
77
|
-
readonly platformVersion: {
|
|
78
|
-
readonly isString: true;
|
|
79
|
-
};
|
|
80
|
-
readonly newCommandTimeout: {
|
|
81
|
-
readonly isNumber: true;
|
|
82
|
-
};
|
|
83
|
-
readonly automationName: {
|
|
84
|
-
readonly isString: true;
|
|
85
|
-
};
|
|
86
|
-
readonly autoLaunch: {
|
|
87
|
-
readonly isBoolean: true;
|
|
88
|
-
};
|
|
89
|
-
readonly udid: {
|
|
90
|
-
readonly isString: true;
|
|
91
|
-
};
|
|
92
|
-
readonly orientation: {
|
|
93
|
-
readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
|
|
94
|
-
};
|
|
95
|
-
readonly autoWebview: {
|
|
96
|
-
readonly isBoolean: true;
|
|
97
|
-
};
|
|
98
|
-
readonly noReset: {
|
|
99
|
-
readonly isBoolean: true;
|
|
100
|
-
};
|
|
101
|
-
readonly fullReset: {
|
|
102
|
-
readonly isBoolean: true;
|
|
103
|
-
};
|
|
104
|
-
readonly language: {
|
|
105
|
-
readonly isString: true;
|
|
106
|
-
};
|
|
107
|
-
readonly locale: {
|
|
108
|
-
readonly isString: true;
|
|
109
|
-
};
|
|
110
|
-
readonly eventTimings: {
|
|
111
|
-
readonly isBoolean: true;
|
|
112
|
-
};
|
|
113
|
-
readonly printPageSourceOnFindFailure: {
|
|
114
|
-
readonly isBoolean: true;
|
|
115
|
-
};
|
|
116
|
-
}>, "appium">> | 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;
|
|
117
17
|
/**
|
|
118
18
|
* A {@linkcode DriverClass }, except using the base {@linkcode Driver } type instead of `ExternalDriver`.
|
|
119
19
|
* This allows the suite to work for `BaseDriver`.
|
|
120
20
|
*/
|
|
121
|
-
export type DriverClass<P extends import("@appium/types").Driver<
|
|
122
|
-
readonly platformName: {
|
|
123
|
-
readonly presence: true;
|
|
124
|
-
readonly isString: true;
|
|
125
|
-
};
|
|
126
|
-
readonly app: {
|
|
127
|
-
readonly isString: true;
|
|
128
|
-
};
|
|
129
|
-
readonly deviceName: {
|
|
130
|
-
readonly isString: true;
|
|
131
|
-
};
|
|
132
|
-
readonly platformVersion: {
|
|
133
|
-
readonly isString: true;
|
|
134
|
-
};
|
|
135
|
-
readonly newCommandTimeout: {
|
|
136
|
-
readonly isNumber: true;
|
|
137
|
-
};
|
|
138
|
-
readonly automationName: {
|
|
139
|
-
readonly isString: true;
|
|
140
|
-
};
|
|
141
|
-
readonly autoLaunch: {
|
|
142
|
-
readonly isBoolean: true;
|
|
143
|
-
};
|
|
144
|
-
readonly udid: {
|
|
145
|
-
readonly isString: true;
|
|
146
|
-
};
|
|
147
|
-
readonly orientation: {
|
|
148
|
-
readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
|
|
149
|
-
};
|
|
150
|
-
readonly autoWebview: {
|
|
151
|
-
readonly isBoolean: true;
|
|
152
|
-
};
|
|
153
|
-
readonly noReset: {
|
|
154
|
-
readonly isBoolean: true;
|
|
155
|
-
};
|
|
156
|
-
readonly fullReset: {
|
|
157
|
-
readonly isBoolean: true;
|
|
158
|
-
};
|
|
159
|
-
readonly language: {
|
|
160
|
-
readonly isString: true;
|
|
161
|
-
};
|
|
162
|
-
readonly locale: {
|
|
163
|
-
readonly isString: true;
|
|
164
|
-
};
|
|
165
|
-
readonly eventTimings: {
|
|
166
|
-
readonly isBoolean: true;
|
|
167
|
-
};
|
|
168
|
-
readonly printPageSourceOnFindFailure: {
|
|
169
|
-
readonly isBoolean: true;
|
|
170
|
-
};
|
|
171
|
-
}, import("@appium/types").StringRecord>> = import('@appium/types').DriverClass<P>;
|
|
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>;
|
|
172
22
|
export type Driver = import('@appium/types').Driver;
|
|
173
23
|
export type Constraints = import('@appium/types').Constraints;
|
|
174
|
-
export type DriverStatic = import(
|
|
24
|
+
export type DriverStatic = import("@appium/types").DriverStatic<any>;
|
|
175
25
|
export type StringRecord = import('@appium/types').StringRecord;
|
|
176
26
|
export type BaseDriverCapConstraints = import('@appium/types').BaseDriverCapConstraints;
|
|
177
27
|
export type BaseNSCapabilities = import('@appium/types').BaseNSCapabilities;
|
|
178
28
|
export type AxiosRequestConfig = import('axios').AxiosRequestConfig;
|
|
179
29
|
export type SingularSessionData = import('@appium/types').SingularSessionData;
|
|
180
30
|
export type AxiosResponse<T, D> = import('axios').AxiosResponse<T, D>;
|
|
181
|
-
export type NewSessionData<C extends Readonly<Record<string, import("@appium/types").Constraint>> = {
|
|
182
|
-
readonly platformName: {
|
|
183
|
-
readonly presence: true;
|
|
184
|
-
readonly isString: true;
|
|
185
|
-
};
|
|
186
|
-
readonly app: {
|
|
187
|
-
readonly isString: true;
|
|
188
|
-
};
|
|
189
|
-
readonly deviceName: {
|
|
190
|
-
readonly isString: true;
|
|
191
|
-
};
|
|
192
|
-
readonly platformVersion: {
|
|
193
|
-
readonly isString: true;
|
|
194
|
-
};
|
|
195
|
-
readonly newCommandTimeout: {
|
|
196
|
-
readonly isNumber: true;
|
|
197
|
-
};
|
|
198
|
-
readonly automationName: {
|
|
199
|
-
readonly isString: true;
|
|
200
|
-
};
|
|
201
|
-
readonly autoLaunch: {
|
|
202
|
-
readonly isBoolean: true;
|
|
203
|
-
};
|
|
204
|
-
readonly udid: {
|
|
205
|
-
readonly isString: true;
|
|
206
|
-
};
|
|
207
|
-
readonly orientation: {
|
|
208
|
-
readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
|
|
209
|
-
};
|
|
210
|
-
readonly autoWebview: {
|
|
211
|
-
readonly isBoolean: true;
|
|
212
|
-
};
|
|
213
|
-
readonly noReset: {
|
|
214
|
-
readonly isBoolean: true;
|
|
215
|
-
};
|
|
216
|
-
readonly fullReset: {
|
|
217
|
-
readonly isBoolean: true;
|
|
218
|
-
};
|
|
219
|
-
readonly language: {
|
|
220
|
-
readonly isString: true;
|
|
221
|
-
};
|
|
222
|
-
readonly locale: {
|
|
223
|
-
readonly isString: true;
|
|
224
|
-
};
|
|
225
|
-
readonly eventTimings: {
|
|
226
|
-
readonly isBoolean: true;
|
|
227
|
-
};
|
|
228
|
-
readonly printPageSourceOnFindFailure: {
|
|
229
|
-
readonly isBoolean: true;
|
|
230
|
-
};
|
|
231
|
-
}, Extra extends void | import("@appium/types").StringRecord = void> = {
|
|
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> = {
|
|
232
32
|
capabilities: import('type-fest').RequireAtLeastOne<import('@appium/types').W3CCapabilities<C, Extra>, 'firstMatch' | 'alwaysMatch'>;
|
|
233
33
|
};
|
|
234
|
-
export type NewSessionResponse<C extends Readonly<Record<string, import("@appium/types").Constraint>> = {
|
|
235
|
-
readonly platformName: {
|
|
236
|
-
readonly presence: true;
|
|
237
|
-
readonly isString: true;
|
|
238
|
-
};
|
|
239
|
-
readonly app: {
|
|
240
|
-
readonly isString: true;
|
|
241
|
-
};
|
|
242
|
-
readonly deviceName: {
|
|
243
|
-
readonly isString: true;
|
|
244
|
-
};
|
|
245
|
-
readonly platformVersion: {
|
|
246
|
-
readonly isString: true;
|
|
247
|
-
};
|
|
248
|
-
readonly newCommandTimeout: {
|
|
249
|
-
readonly isNumber: true;
|
|
250
|
-
};
|
|
251
|
-
readonly automationName: {
|
|
252
|
-
readonly isString: true;
|
|
253
|
-
};
|
|
254
|
-
readonly autoLaunch: {
|
|
255
|
-
readonly isBoolean: true;
|
|
256
|
-
};
|
|
257
|
-
readonly udid: {
|
|
258
|
-
readonly isString: true;
|
|
259
|
-
};
|
|
260
|
-
readonly orientation: {
|
|
261
|
-
readonly inclusion: readonly ["LANDSCAPE", "PORTRAIT"];
|
|
262
|
-
};
|
|
263
|
-
readonly autoWebview: {
|
|
264
|
-
readonly isBoolean: true;
|
|
265
|
-
};
|
|
266
|
-
readonly noReset: {
|
|
267
|
-
readonly isBoolean: true;
|
|
268
|
-
};
|
|
269
|
-
readonly fullReset: {
|
|
270
|
-
readonly isBoolean: true;
|
|
271
|
-
};
|
|
272
|
-
readonly language: {
|
|
273
|
-
readonly isString: true;
|
|
274
|
-
};
|
|
275
|
-
readonly locale: {
|
|
276
|
-
readonly isString: true;
|
|
277
|
-
};
|
|
278
|
-
readonly eventTimings: {
|
|
279
|
-
readonly isBoolean: true;
|
|
280
|
-
};
|
|
281
|
-
readonly printPageSourceOnFindFailure: {
|
|
282
|
-
readonly isBoolean: true;
|
|
283
|
-
};
|
|
284
|
-
}, Extra extends void | import("@appium/types").StringRecord = void> = {
|
|
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> = {
|
|
285
35
|
/**
|
|
286
36
|
* ,
|
|
287
37
|
*/
|
|
@@ -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"}
|