From 0eca281c16378d2997f4e42f173acf8a3c86c0df Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Mon, 11 Dec 2023 13:35:16 +0100 Subject: [PATCH] fix: scrollIntoView types --- typings/tests/helpers/Appium.types.ts | 1 + typings/tests/helpers/AppiumTs.types.ts | 1 + typings/tests/helpers/WebDriverIO.types.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/typings/tests/helpers/Appium.types.ts b/typings/tests/helpers/Appium.types.ts index 99467fa7f..1187e0d01 100644 --- a/typings/tests/helpers/Appium.types.ts +++ b/typings/tests/helpers/Appium.types.ts @@ -84,6 +84,7 @@ appium.grabValueFromAll(str); // $ExpectType Promise appium.grabValueFrom(str); // $ExpectType Promise appium.saveScreenshot(str); // $ExpectType Promise 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 diff --git a/typings/tests/helpers/AppiumTs.types.ts b/typings/tests/helpers/AppiumTs.types.ts index b41983925..a4a758ad8 100644 --- a/typings/tests/helpers/AppiumTs.types.ts +++ b/typings/tests/helpers/AppiumTs.types.ts @@ -84,6 +84,7 @@ appium.grabValueFromAll(str); // $ExpectType Promise appium.grabValueFrom(str); // $ExpectType Promise appium.saveScreenshot(str); // $ExpectType Promise appium.scrollIntoView(str, {}); // $ExpectType Promise +appium.scrollIntoView(str, true); // $ExpectType Promise appium.seeCheckboxIsChecked(str); // $ExpectType Promise appium.seeElement(str); // $ExpectType Promise appium.seeInField(str, str); // $ExpectType Promise diff --git a/typings/tests/helpers/WebDriverIO.types.ts b/typings/tests/helpers/WebDriverIO.types.ts index 2e44a62ae..1ff4a86e6 100644 --- a/typings/tests/helpers/WebDriverIO.types.ts +++ b/typings/tests/helpers/WebDriverIO.types.ts @@ -254,6 +254,7 @@ wd.executeAsyncScript(() => {}, {}); // $ExpectType Promise wd.scrollIntoView(); // $ExpectError wd.scrollIntoView('div'); // $ExpectError +wd.scrollIntoView('div', true); wd.scrollIntoView('div', { behavior: 'auto', block: 'center', inline: 'center' }); wd.scrollTo(); // $ExpectError