File tree Expand file tree Collapse file tree 2 files changed +17
-12
lines changed Expand file tree Collapse file tree 2 files changed +17
-12
lines changed Original file line number Diff line number Diff line change 38
38
"@types/simmerjs" : " ^0.5.1" ,
39
39
"@typescript-eslint/eslint-plugin" : " ^4.14.0" ,
40
40
"@typescript-eslint/parser" : " ^4.14.0" ,
41
- "@wdio/cli" : " ^7.3.1 " ,
42
- "@wdio/local-runner" : " ^7.3.1 " ,
43
- "@wdio/mocha-framework" : " ^7.3.1 " ,
44
- "@wdio/selenium-standalone-service" : " ^7.7.3 " ,
45
- "@wdio/spec-reporter" : " ^7.3.1 " ,
46
- "@wdio/sync" : " ^7.3.1 " ,
41
+ "@wdio/cli" : " ^7.9.0 " ,
42
+ "@wdio/local-runner" : " ^7.9.0 " ,
43
+ "@wdio/mocha-framework" : " ^7.9.0 " ,
44
+ "@wdio/selenium-standalone-service" : " ^7.9.0 " ,
45
+ "@wdio/spec-reporter" : " ^7.9.0 " ,
46
+ "@wdio/sync" : " ^7.9.0 " ,
47
47
"eslint" : " ^7.6.0" ,
48
48
"kcd-scripts" : " ^11.1.0" ,
49
49
"npm-run-all" : " ^4.1.5" ,
Original file line number Diff line number Diff line change @@ -15,10 +15,17 @@ declare global {
15
15
}
16
16
}
17
17
18
+ export type $ = (
19
+ selector : any ,
20
+ ) =>
21
+ | ChainablePromiseElementBase < Promise < WebdriverIO . Element > >
22
+ | Promise < WebdriverIO . Element >
23
+ | WebdriverIO . Element
24
+
25
+ export type ChainablePromiseElementBase < T > = Promise < T > & { $ : $ }
26
+
18
27
export type ElementBase = {
19
- $ (
20
- selector : object | string ,
21
- ) : Promise < WebdriverIO . Element > | WebdriverIO . Element
28
+ $ : $
22
29
23
30
execute < T > (
24
31
script : string | ( ( ...args : any [ ] ) => T ) ,
@@ -31,9 +38,7 @@ export type ElementBase = {
31
38
}
32
39
33
40
export type BrowserBase = {
34
- $ (
35
- selector : object | string ,
36
- ) : Promise < WebdriverIO . Element > | WebdriverIO . Element
41
+ $ : $
37
42
38
43
addCommand < T extends boolean > (
39
44
queryName : string ,
You can’t perform that action at this time.
0 commit comments