digitalfabrik/integreat-app

View on GitHub
e2e-tests/native/test/helpers/Keyboard.ts

Summary

Maintainability
A
0 mins
Test Coverage
class Keyboard {
  static hide = async (iosSendKey = '\n'): Promise<void> => {
    if (driver.isAndroid) {
      await driver.hideKeyboard()
    } else {
      await driver.sendKeys([iosSendKey])
    }
  }
}

export default Keyboard