How to use the appium-android-driver.androidHelpers.ensureDeviceLocale function in appium-android-driver

To help you get started, we’ve selected a few appium-android-driver examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github appium / appium-uiautomator2-driver / test / functional / commands / strings-e2e-specs.js View on Github external
afterEach(async function () {
      if (driver) {
        if (await adb.getApiLevel() > 23) {
          let [language, country] = initialLocale.split('-');
          await androidHelpers.ensureDeviceLocale(adb, language, country);
        } else {
          // This method is flakey in CI
          if (!process.env.CI) {
            await androidHelpers.ensureDeviceLocale(adb, null, initialLocale);
          }
        }

        await deleteSession();
      }
    });
github appium / appium-uiautomator2-driver / test / functional / commands / strings-e2e-specs.js View on Github external
afterEach(async function () {
      if (driver) {
        if (await adb.getApiLevel() > 23) {
          let [language, country] = initialLocale.split('-');
          await androidHelpers.ensureDeviceLocale(adb, language, country);
        } else {
          // This method is flakey in CI
          if (!process.env.CI) {
            await androidHelpers.ensureDeviceLocale(adb, null, initialLocale);
          }
        }

        await deleteSession();
      }
    });
github appium / appium-uiautomator2-driver / test / functional / commands / language-e2e-specs.js View on Github external
after(async function () {
    if (driver) {
      if (await adb.getApiLevel() > 23) {
        let [language, country] = initialLocale.split('-');
        await androidHelpers.ensureDeviceLocale(driver.adb, language, country);
      } else {
        await androidHelpers.ensureDeviceLocale(driver.adb, null, initialLocale);
      }
      await deleteSession();
    }
  });
github appium / appium-uiautomator2-driver / test / functional / commands / language-e2e-specs.js View on Github external
after(async function () {
    if (driver) {
      if (await adb.getApiLevel() > 23) {
        let [language, country] = initialLocale.split('-');
        await androidHelpers.ensureDeviceLocale(driver.adb, language, country);
      } else {
        await androidHelpers.ensureDeviceLocale(driver.adb, null, initialLocale);
      }
      await deleteSession();
    }
  });