text: /**
   * Check if a modal was opened
   * @param  {String}   modalType  The type of modal that is expected (alertbox,
   *                               confirmbox or prompt)
   * @param  {String}   falseState Whether to check if the modal was opened or not
   * @param  {Function} done       Function to execute when finished
   */
  export default (modalType, falseState, done) => {
      /**
       * The text of the prompt
       * @type {String}
       */
      let promptText = '';
  
      try {
          promptText = browser.alertText();
  
          if (falseState) {
              expect(promptText).to.not
                  .equal(
                      null,
                      `A ${modalType} was opened when it shouldn't`
                  );
          }
      } catch (e) {
          if (!falseState) {
              expect(promptText).to
                  .equal(
                      null,
                      `A ${modalType} was not opened when it should have been`
                  );
          }
      }
  
      done();
  };
  