@wdio/cli 9.16.2 → 9.17.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/commands/index.d.ts.map +1 -1
- package/build/commands/repl.d.ts.map +1 -1
- package/build/commands/run.d.ts +1 -1
- package/build/commands/run.d.ts.map +1 -1
- package/build/constants.d.ts +0 -235
- package/build/constants.d.ts.map +1 -1
- package/build/index.js +120 -1737
- package/build/interface.d.ts.map +1 -1
- package/build/types.d.ts +2 -74
- package/build/types.d.ts.map +1 -1
- package/build/utils.d.ts +1 -73
- package/build/utils.d.ts.map +1 -1
- package/build/watcher.d.ts.map +1 -1
- package/package.json +7 -7
- package/build/commands/config.d.ts +0 -74
- package/build/commands/config.d.ts.map +0 -1
- package/build/commands/install.d.ts +0 -12
- package/build/commands/install.d.ts.map +0 -1
- package/build/install.d.ts +0 -4
- package/build/install.d.ts.map +0 -1
- package/build/templates/EjsHelpers.d.ts +0 -18
- package/build/templates/EjsHelpers.d.ts.map +0 -1
- package/build/templates/exampleFiles/browser/Component.css.ejs +0 -121
- package/build/templates/exampleFiles/browser/Component.lit.ejs +0 -154
- package/build/templates/exampleFiles/browser/Component.lit.test.ejs +0 -24
- package/build/templates/exampleFiles/browser/Component.preact.ejs +0 -28
- package/build/templates/exampleFiles/browser/Component.preact.test.ejs +0 -59
- package/build/templates/exampleFiles/browser/Component.react.ejs +0 -29
- package/build/templates/exampleFiles/browser/Component.react.test.ejs +0 -58
- package/build/templates/exampleFiles/browser/Component.solid.ejs +0 -28
- package/build/templates/exampleFiles/browser/Component.solid.test.ejs +0 -58
- package/build/templates/exampleFiles/browser/Component.stencil.ejs +0 -43
- package/build/templates/exampleFiles/browser/Component.stencil.test.ejs +0 -45
- package/build/templates/exampleFiles/browser/Component.svelte.ejs +0 -47
- package/build/templates/exampleFiles/browser/Component.svelte.test.ejs +0 -58
- package/build/templates/exampleFiles/browser/Component.vue.ejs +0 -34
- package/build/templates/exampleFiles/browser/Component.vue.test.ejs +0 -62
- package/build/templates/exampleFiles/browser/standalone.test.ejs +0 -13
- package/build/templates/exampleFiles/cucumber/features/login.feature +0 -12
- package/build/templates/exampleFiles/cucumber/step_definitions/steps.js.ejs +0 -55
- package/build/templates/exampleFiles/mochaJasmine/test.e2e.js.ejs +0 -11
- package/build/templates/exampleFiles/pageobjects/login.page.js.ejs +0 -45
- package/build/templates/exampleFiles/pageobjects/page.js.ejs +0 -17
- package/build/templates/exampleFiles/pageobjects/secure.page.js.ejs +0 -20
- package/build/templates/exampleFiles/serenity-js/common/config/serenity.properties.ejs +0 -1
- package/build/templates/exampleFiles/serenity-js/common/serenity/github-api/GitHubStatus.ts.ejs +0 -41
- package/build/templates/exampleFiles/serenity-js/common/serenity/todo-list-app/TodoList.ts.ejs +0 -100
- package/build/templates/exampleFiles/serenity-js/common/serenity/todo-list-app/TodoListItem.ts.ejs +0 -36
- package/build/templates/exampleFiles/serenity-js/cucumber/step-definitions/steps.ts.ejs +0 -37
- package/build/templates/exampleFiles/serenity-js/cucumber/support/parameter.config.ts.ejs +0 -18
- package/build/templates/exampleFiles/serenity-js/cucumber/todo-list/completing_items.feature.ejs +0 -23
- package/build/templates/exampleFiles/serenity-js/cucumber/todo-list/narrative.md.ejs +0 -17
- package/build/templates/exampleFiles/serenity-js/jasmine/example.spec.ts.ejs +0 -86
- package/build/templates/exampleFiles/serenity-js/mocha/example.spec.ts.ejs +0 -88
- package/build/templates/snippets/afterTest.ejs +0 -20
- package/build/templates/snippets/capabilities.ejs +0 -57
- package/build/templates/snippets/cucumber.ejs +0 -50
- package/build/templates/snippets/electronTest.js.ejs +0 -7
- package/build/templates/snippets/jasmine.ejs +0 -20
- package/build/templates/snippets/macosTest.js.ejs +0 -11
- package/build/templates/snippets/mocha.ejs +0 -14
- package/build/templates/snippets/reporters.ejs +0 -14
- package/build/templates/snippets/serenity.ejs +0 -18
- package/build/templates/snippets/services.ejs +0 -18
- package/build/templates/snippets/testWithPO.js.ejs +0 -22
- package/build/templates/snippets/testWithoutPO.js.ejs +0 -19
- package/build/templates/snippets/vscodeTest.js.ejs +0 -9
- package/build/templates/wdio.conf.tpl.ejs +0 -412
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,QAAQ,EAAE,GAAkC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../src/commands/repl.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAK1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAOvD,eAAO,MAAM,OAAO,iCAAiC,CAAA;AACrD,eAAO,MAAM,IAAI,0CAA0C,CAAA;AAC3D,eAAO,MAAM,OAAO,EAAE;KAAG,CAAC,IAAI,MAAM,oBAAoB,CAAC,CAAC,EAAE,OAAO;CAgBzD,CAAA;AAEV,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"repl.d.ts","sourceRoot":"","sources":["../../src/commands/repl.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAK1C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAOvD,eAAO,MAAM,OAAO,iCAAiC,CAAA;AACrD,eAAO,MAAM,IAAI,0CAA0C,CAAA;AAC3D,eAAO,MAAM,OAAO,EAAE;KAAG,CAAC,IAAI,MAAM,oBAAoB,CAAC,CAAC,EAAE,OAAO;CAgBzD,CAAA;AAEV,eAAO,MAAM,OAAO,GAAI,OAAO,IAAI,KAWhB,OAClB,CAAA;AAED,eAAO,MAAM,OAAO,GAAU,MAAM,oBAAoB,kBAUvD,CAAA"}
|
package/build/commands/run.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ export declare const cmdArgs: {
|
|
|
116
116
|
};
|
|
117
117
|
};
|
|
118
118
|
};
|
|
119
|
-
export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "
|
|
119
|
+
export declare const builder: (yargs: Argv) => Argv<import("yargs").Omit<{}, "exclude" | "bail" | "updateSnapshots" | "framework" | "reporters" | "watch" | "shard" | "mochaOpts" | "jasmineOpts" | "cucumberOpts" | "baseUrl" | "waitforTimeout" | "logLevel" | "hostname" | "port" | "path" | "user" | "key" | "coverage" | "suite" | "spec" | "repeat"> & import("yargs").InferredOptionTypes<{
|
|
120
120
|
readonly watch: {
|
|
121
121
|
readonly desc: "Run WebdriverIO in watch mode";
|
|
122
122
|
readonly type: "boolean";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/commands/run.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAMjC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAGtD,eAAO,MAAM,OAAO,qBAAqB,CAAA;AAEzC,eAAO,MAAM,IAAI,yEAAyE,CAAA;AAE1F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAmDI,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAkDN,MAAM;;;;;CAQpB,CAAA;AAEV,eAAO,MAAM,OAAO,GAAI,OAAO,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA5DX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAkDN,MAAM;;;;;GAoB7B,CAAA;AAED,wBAAgB,eAAe,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,QAezF;AAED,wBAAsB,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,iBAgBtF;AAED,wBAAsB,OAAO,CAAC,IAAI,EAAE,mBAAmB,iBAgEtD"}
|
package/build/constants.d.ts
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
import type { Options } from '@wdio/types';
|
|
2
|
-
import type { Questionnair } from './types.js';
|
|
3
2
|
export declare const pkg: any;
|
|
4
3
|
export declare const CLI_EPILOGUE: string;
|
|
5
|
-
export declare const CONFIG_HELPER_INTRO = "\n===============================\n\uD83E\uDD16 WDIO Configuration Wizard \uD83E\uDDD9\n===============================\n";
|
|
6
4
|
export declare const SUPPORTED_COMMANDS: string[];
|
|
7
|
-
export declare const PMs: readonly ["npm", "yarn", "pnpm", "bun"];
|
|
8
|
-
export declare const SUPPORTED_CONFIG_FILE_EXTENSION: string[];
|
|
9
|
-
export declare const configHelperSuccessMessage: ({ projectRootDir, runScript, extraInfo }: {
|
|
10
|
-
projectRootDir: string;
|
|
11
|
-
runScript: string;
|
|
12
|
-
extraInfo: string;
|
|
13
|
-
}) => string;
|
|
14
|
-
export declare const CONFIG_HELPER_SERENITY_BANNER = "\nLearn more about Serenity/JS:\n \uD83D\uDD17 https://serenity-js.org/\n \uD83D\uDD17 https://serenity-js.org/handbook/test-runners/webdriverio/\n";
|
|
15
|
-
export declare const DEPENDENCIES_INSTALLATION_MESSAGE = "\nTo install dependencies, execute:\n%s\n";
|
|
16
|
-
export declare const NPM_INSTALL = "";
|
|
17
5
|
export declare const ANDROID_CONFIG: {
|
|
18
6
|
platformName: string;
|
|
19
7
|
automationName: string;
|
|
@@ -24,228 +12,6 @@ export declare const IOS_CONFIG: {
|
|
|
24
12
|
automationName: string;
|
|
25
13
|
deviceName: string;
|
|
26
14
|
};
|
|
27
|
-
/**
|
|
28
|
-
* We have to use a string hash for value because InquirerJS default values do not work if we have
|
|
29
|
-
* objects as a `value` to be stored from the user's answers.
|
|
30
|
-
*/
|
|
31
|
-
export declare const SUPPORTED_PACKAGES: {
|
|
32
|
-
runner: {
|
|
33
|
-
name: string;
|
|
34
|
-
value: string;
|
|
35
|
-
}[];
|
|
36
|
-
framework: {
|
|
37
|
-
name: string;
|
|
38
|
-
value: string;
|
|
39
|
-
}[];
|
|
40
|
-
reporter: ({
|
|
41
|
-
name: string;
|
|
42
|
-
value: string;
|
|
43
|
-
checked: boolean;
|
|
44
|
-
} | {
|
|
45
|
-
name: string;
|
|
46
|
-
value: string;
|
|
47
|
-
checked?: undefined;
|
|
48
|
-
})[];
|
|
49
|
-
plugin: {
|
|
50
|
-
name: string;
|
|
51
|
-
value: string;
|
|
52
|
-
}[];
|
|
53
|
-
service: {
|
|
54
|
-
name: string;
|
|
55
|
-
value: string;
|
|
56
|
-
}[];
|
|
57
|
-
};
|
|
58
|
-
export declare const SUPPORTED_BROWSER_RUNNER_PRESETS: ({
|
|
59
|
-
name: string;
|
|
60
|
-
value: string;
|
|
61
|
-
} | {
|
|
62
|
-
name: string;
|
|
63
|
-
value: null;
|
|
64
|
-
})[];
|
|
65
|
-
export declare const TESTING_LIBRARY_PACKAGES: Record<string, string>;
|
|
66
|
-
export declare enum BackendChoice {
|
|
67
|
-
Local = "On my local machine",
|
|
68
|
-
Experitest = "In the cloud using Experitest",
|
|
69
|
-
Saucelabs = "In the cloud using Sauce Labs",
|
|
70
|
-
Browserstack = "In the cloud using BrowserStack",
|
|
71
|
-
OtherVendors = "In the cloud using Testingbot or LambdaTest or a different service",
|
|
72
|
-
Grid = "I have my own Selenium cloud"
|
|
73
|
-
}
|
|
74
|
-
export declare enum ElectronBuildToolChoice {
|
|
75
|
-
ElectronForge = "Electron Forge (https://www.electronforge.io/)",
|
|
76
|
-
ElectronBuilder = "electron-builder (https://www.electron.build/)",
|
|
77
|
-
SomethingElse = "Something else"
|
|
78
|
-
}
|
|
79
|
-
declare enum ProtocolOptions {
|
|
80
|
-
HTTPS = "https",
|
|
81
|
-
HTTP = "http"
|
|
82
|
-
}
|
|
83
|
-
export declare enum RegionOptions {
|
|
84
|
-
US = "us",
|
|
85
|
-
EU = "eu"
|
|
86
|
-
}
|
|
87
|
-
export declare const E2E_ENVIRONMENTS: {
|
|
88
|
-
name: string;
|
|
89
|
-
value: string;
|
|
90
|
-
}[];
|
|
91
|
-
export declare const MOBILE_ENVIRONMENTS: {
|
|
92
|
-
name: string;
|
|
93
|
-
value: string;
|
|
94
|
-
}[];
|
|
95
|
-
export declare const BROWSER_ENVIRONMENTS: ({
|
|
96
|
-
name: string;
|
|
97
|
-
value: string;
|
|
98
|
-
checked: boolean;
|
|
99
|
-
} | {
|
|
100
|
-
name: string;
|
|
101
|
-
value: string;
|
|
102
|
-
checked?: undefined;
|
|
103
|
-
})[];
|
|
104
|
-
declare function isBrowserRunner(answers: Questionnair): boolean;
|
|
105
|
-
export declare function usesSerenity(answers: Questionnair): boolean;
|
|
106
|
-
export declare const isNuxtProject: boolean;
|
|
107
|
-
export declare const QUESTIONNAIRE: ({
|
|
108
|
-
type: string;
|
|
109
|
-
name: string;
|
|
110
|
-
message: string;
|
|
111
|
-
choices: {
|
|
112
|
-
name: string;
|
|
113
|
-
value: string;
|
|
114
|
-
}[];
|
|
115
|
-
when?: undefined;
|
|
116
|
-
default?: undefined;
|
|
117
|
-
} | {
|
|
118
|
-
type: string;
|
|
119
|
-
name: string;
|
|
120
|
-
message: string;
|
|
121
|
-
choices: ({
|
|
122
|
-
name: string;
|
|
123
|
-
value: string;
|
|
124
|
-
} | {
|
|
125
|
-
name: string;
|
|
126
|
-
value: null;
|
|
127
|
-
})[];
|
|
128
|
-
when: typeof isBrowserRunner;
|
|
129
|
-
default?: undefined;
|
|
130
|
-
} | {
|
|
131
|
-
type: string;
|
|
132
|
-
name: string;
|
|
133
|
-
message: string;
|
|
134
|
-
default: boolean;
|
|
135
|
-
when: (answers: Questionnair) => string | false | undefined;
|
|
136
|
-
choices?: undefined;
|
|
137
|
-
} | {
|
|
138
|
-
type: string;
|
|
139
|
-
name: string;
|
|
140
|
-
message: string;
|
|
141
|
-
choices: ElectronBuildToolChoice[];
|
|
142
|
-
when: (answers: Questionnair) => boolean;
|
|
143
|
-
default?: undefined;
|
|
144
|
-
} | {
|
|
145
|
-
type: string;
|
|
146
|
-
name: string;
|
|
147
|
-
message: string;
|
|
148
|
-
choices: BackendChoice[];
|
|
149
|
-
when: (answers: Questionnair) => boolean;
|
|
150
|
-
default?: undefined;
|
|
151
|
-
} | {
|
|
152
|
-
type: string;
|
|
153
|
-
name: string;
|
|
154
|
-
message: string;
|
|
155
|
-
choices: {
|
|
156
|
-
name: string;
|
|
157
|
-
value: string;
|
|
158
|
-
}[];
|
|
159
|
-
default: string;
|
|
160
|
-
when: (answers: Questionnair) => boolean;
|
|
161
|
-
} | {
|
|
162
|
-
type: string;
|
|
163
|
-
name: string;
|
|
164
|
-
message: string;
|
|
165
|
-
when: (answers: Questionnair) => boolean | undefined;
|
|
166
|
-
choices?: undefined;
|
|
167
|
-
default?: undefined;
|
|
168
|
-
} | {
|
|
169
|
-
type: string;
|
|
170
|
-
name: string;
|
|
171
|
-
message: string;
|
|
172
|
-
default: string;
|
|
173
|
-
when: (answers: Questionnair) => boolean | undefined;
|
|
174
|
-
choices?: undefined;
|
|
175
|
-
} | {
|
|
176
|
-
type: string;
|
|
177
|
-
name: string;
|
|
178
|
-
message: string;
|
|
179
|
-
default: ProtocolOptions;
|
|
180
|
-
choices: ProtocolOptions[];
|
|
181
|
-
when: (answers: Questionnair) => boolean;
|
|
182
|
-
} | {
|
|
183
|
-
type: string;
|
|
184
|
-
name: string;
|
|
185
|
-
message: string;
|
|
186
|
-
choices: RegionOptions[];
|
|
187
|
-
when: (answers: Questionnair) => boolean;
|
|
188
|
-
default?: undefined;
|
|
189
|
-
} | {
|
|
190
|
-
type: string;
|
|
191
|
-
name: string;
|
|
192
|
-
message: string;
|
|
193
|
-
default: boolean;
|
|
194
|
-
when: (answers: Questionnair) => boolean;
|
|
195
|
-
choices?: undefined;
|
|
196
|
-
} | {
|
|
197
|
-
type: string;
|
|
198
|
-
name: string;
|
|
199
|
-
message: string;
|
|
200
|
-
choices: (answers: Questionnair) => {
|
|
201
|
-
name: string;
|
|
202
|
-
value: string;
|
|
203
|
-
}[];
|
|
204
|
-
when?: undefined;
|
|
205
|
-
default?: undefined;
|
|
206
|
-
} | {
|
|
207
|
-
type: string;
|
|
208
|
-
name: string;
|
|
209
|
-
message: string;
|
|
210
|
-
when: (answers: Questionnair) => boolean;
|
|
211
|
-
default: (answers: Questionnair) => true | Promise<boolean>;
|
|
212
|
-
choices?: undefined;
|
|
213
|
-
} | {
|
|
214
|
-
type: string;
|
|
215
|
-
name: string;
|
|
216
|
-
message: string;
|
|
217
|
-
default: (answers: Questionnair) => Promise<string>;
|
|
218
|
-
when: (answers: Questionnair) => boolean | undefined;
|
|
219
|
-
choices?: undefined;
|
|
220
|
-
} | {
|
|
221
|
-
type: string;
|
|
222
|
-
name: string;
|
|
223
|
-
message: string;
|
|
224
|
-
choices: {
|
|
225
|
-
name: string;
|
|
226
|
-
value: string;
|
|
227
|
-
}[];
|
|
228
|
-
default: never[];
|
|
229
|
-
when?: undefined;
|
|
230
|
-
} | {
|
|
231
|
-
type: string;
|
|
232
|
-
name: string;
|
|
233
|
-
message: string;
|
|
234
|
-
choices: (answers: Questionnair) => ({
|
|
235
|
-
name: string;
|
|
236
|
-
value: string;
|
|
237
|
-
} | undefined)[];
|
|
238
|
-
default: (answers: Questionnair) => string[];
|
|
239
|
-
when?: undefined;
|
|
240
|
-
} | {
|
|
241
|
-
type: string;
|
|
242
|
-
name: string;
|
|
243
|
-
message: () => string;
|
|
244
|
-
default: boolean;
|
|
245
|
-
choices?: undefined;
|
|
246
|
-
when?: undefined;
|
|
247
|
-
})[];
|
|
248
|
-
export declare const COMMUNITY_PACKAGES_WITH_TS_SUPPORT: string[];
|
|
249
15
|
export declare const TESTRUNNER_DEFAULTS: Options.Definition<Options.Testrunner & {
|
|
250
16
|
capabilities: unknown;
|
|
251
17
|
}>;
|
|
@@ -253,5 +19,4 @@ export declare const WORKER_GROUPLOGS_MESSAGES: {
|
|
|
253
19
|
normalExit: (cid: string) => string;
|
|
254
20
|
exitWithError: (cid: string) => string;
|
|
255
21
|
};
|
|
256
|
-
export {};
|
|
257
22
|
//# sourceMappingURL=constants.d.ts.map
|
package/build/constants.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAuB,MAAM,aAAa,CAAA;AAK/D,eAAO,MAAM,GAAG,KAAU,CAAA;AAC1B,eAAO,MAAM,YAAY,QAAqE,CAAA;AAE9F,eAAO,MAAM,kBAAkB,UAAuC,CAAA;AAEtE,eAAO,MAAM,cAAc;;;;CAI1B,CAAA;AAED,eAAO,MAAM,UAAU;;;;CAItB,CAAA;AAGD,eAAO,MAAM,mBAAmB,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,GAAG;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,CA+SlG,CAAA;AAED,eAAO,MAAM,yBAAyB;sBAChB,MAAM;yBACH,MAAM;CAC9B,CAAA"}
|