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 3838 "@types/simmerjs" : " ^0.5.1" ,
3939 "@typescript-eslint/eslint-plugin" : " ^4.14.0" ,
4040 "@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 " ,
4747 "eslint" : " ^7.6.0" ,
4848 "kcd-scripts" : " ^11.1.0" ,
4949 "npm-run-all" : " ^4.1.5" ,
Original file line number Diff line number Diff line change @@ -15,10 +15,17 @@ declare global {
1515 }
1616}
1717
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+
1827export type ElementBase = {
19- $ (
20- selector : object | string ,
21- ) : Promise < WebdriverIO . Element > | WebdriverIO . Element
28+ $ : $
2229
2330 execute < T > (
2431 script : string | ( ( ...args : any [ ] ) => T ) ,
@@ -31,9 +38,7 @@ export type ElementBase = {
3138}
3239
3340export type BrowserBase = {
34- $ (
35- selector : object | string ,
36- ) : Promise < WebdriverIO . Element > | WebdriverIO . Element
41+ $ : $
3742
3843 addCommand < T extends boolean > (
3944 queryName : string ,
You can’t perform that action at this time.
0 commit comments