text: /**
   * Check if the given element is (not) visible
   * @param  {String}   selector   Element selector
   * @param  {String}   falseCase Check for a visible or a hidden element
   */
  export default (selector, falseCase) => {
      /**
       * Visible state of the give element
       * @type {String}
       */
      const isDisplayed = $(selector).isDisplayed();
  
      if (falseCase) {
          expect(isDisplayed).not.toEqual(
              true,
              `Expected element "${selector}" not to be displayed`
          );
      } else {
          expect(isDisplayed).toEqual(
              true,
              `Expected element "${selector}" to be displayed`
          );
      }
  };
  