Skip to content

Commit

Permalink
fix: scrollIntoView types
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent committed Dec 11, 2023
1 parent 62cb097 commit 0eca281
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions typings/tests/helpers/Appium.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ appium.grabValueFromAll(str); // $ExpectType Promise<string[]>
appium.grabValueFrom(str); // $ExpectType Promise<string>
appium.saveScreenshot(str); // $ExpectType Promise<void>
appium.scrollIntoView(str, {}); // $ExpectType void
appium.scrollIntoView(str, true); // $ExpectType void
appium.seeCheckboxIsChecked(str); // $ExpectType void
appium.seeElement(str); // $ExpectType void
appium.seeInField(str, str); // $ExpectType void
Expand Down
1 change: 1 addition & 0 deletions typings/tests/helpers/AppiumTs.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ appium.grabValueFromAll(str); // $ExpectType Promise<string[]>
appium.grabValueFrom(str); // $ExpectType Promise<string>
appium.saveScreenshot(str); // $ExpectType Promise<void>
appium.scrollIntoView(str, {}); // $ExpectType Promise<any>
appium.scrollIntoView(str, true); // $ExpectType Promise<any>
appium.seeCheckboxIsChecked(str); // $ExpectType Promise<any>
appium.seeElement(str); // $ExpectType Promise<any>
appium.seeInField(str, str); // $ExpectType Promise<any>
Expand Down
1 change: 1 addition & 0 deletions typings/tests/helpers/WebDriverIO.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ wd.executeAsyncScript(() => {}, {}); // $ExpectType Promise<any>

wd.scrollIntoView(); // $ExpectError
wd.scrollIntoView('div'); // $ExpectError
wd.scrollIntoView('div', true);
wd.scrollIntoView('div', { behavior: 'auto', block: 'center', inline: 'center' });

wd.scrollTo(); // $ExpectError
Expand Down

0 comments on commit 0eca281

Please sign in to comment.