text: import { DEFAULT_TIMEOUT } from '../utilities/constants';
  
  export default class AppScreen {
      constructor(selector) {
          this.selector = selector;
      }
  
      /**
       * Wait for the login screen to be visible
       *
       * @param {boolean} isShown
       * @return {boolean}
       */
      waitForIsShown(isShown = true) {
          return $(this.selector).waitForDisplayed(DEFAULT_TIMEOUT, !isShown);
      }
  
      isDisplayed() {
          return $(this.selector).isDisplayed();
      }
  }
  