async expectIsExist(options) {
    let msg = '';
    const { allowMultiple, hover, isNot, message } = new Options(options, {
      defaults: {
        allowMultiple: false,
        hover: false,
        isNot: false
      }
    });

    // ---------------------------------------------------------------------------
    // Handling case when selector must not exist
    // ---------------------------------------------------------------------------

    if (isNot) {
      if (utils.isNonEmptyString(message)) {
        msg = message;
      }
      else {
        msg = `'${this.displayName}' fragment's selector must not return DOM ` +
          'elements but it does';
      }

      await t
        .expect(this.selector.exists)
        .notOk(msg);

      return;
    }

    // ---------------------------------------------------------------------------
    // Handling case when selector must exist
    // ---------------------------------------------------------------------------

    if (allowMultiple) {
      msg = utils.isNonEmptyString(message) ?
        message :
        `'${this.displayName}' fragment's selector must return one or more DOM ` +
        "elements but it doesn't";

      await t
        .expect(this.selector.count)
        .gte(1, msg);
    }
    else {
      msg = utils.isNonEmptyString(message) ?
        message :
        `'${this.displayName}' fragment's selector must return exactly one DOM ` +
        "element but it doesn't";

      await t
        .expect(this.selector.count)
        .eql(1, msg);
    }

    if (hover && !isNot) {
      await this.hover();
    }
  }
/**
   * Asserts that fragment is exist - its selector returns one or more DOM
   * elements.
   *
   * @param {Options|Object} [options] Options
   * @param {Boolean} [options.allowMultiple=false] When falsey then fragment's selector must return only one DOM element to pass assertion
   * @param {Boolean} [options.hover=false] When truthy and `isNot` is falsey then `#hover()` would be called additionally
   * @param {Boolean} [options.isNot=false] When truthy fragment's selector must not exist (return zero DOM elements) to pass assertion
   * @param {String} [options.message] Custom message for error
   * @return {Promise<void>}
   */
Asserts that fragment is exist - its selector returns one or more DOM
elements.


Asserts that fragment is exist - its selector returns one or more DOM elements .
async expectIsExist(options) {
    let msg = '';
    const { allowMultiple, hover, isNot, message } = new Options(options, {
      defaults: {
        allowMultiple: false,
        hover: false,
        isNot: false
      }
    });
    if (isNot) {
      if (utils.isNonEmptyString(message)) {
        msg = message;
      }
      else {
        msg = `'${this.displayName}' fragment's selector must not return DOM ` +
          'elements but it does';
      }
      await t
        .expect(this.selector.exists)
        .notOk(msg);
      return;
    }
    if (allowMultiple) {
      msg = utils.isNonEmptyString(message) ?
        message :
        `'${this.displayName}' fragment's selector must return one or more DOM ` +
        "elements but it doesn't";
      await t
        .expect(this.selector.count)
        .gte(1, msg);
    }
    else {
      msg = utils.isNonEmptyString(message) ?
        message :
        `'${this.displayName}' fragment's selector must return exactly one DOM ` +
        "element but it doesn't";
      await t
        .expect(this.selector.count)
        .eql(1, msg);
    }
    if (hover && !isNot) {
      await this.hover();
    }
  }
async expectIsExist ( options ) { let msg = '' ; const { allowMultiple , hover , isNot , message } = new Options ( options , { defaults : { allowMultiple : false , hover : false , isNot : false } } ) ; if ( isNot ) { if ( utils . isNonEmptyString ( message ) ) { msg = message ; } else { msg = ` ${ this . displayName } ` + 'elements but it does' ; } await t . expect ( this . selector . exists ) . notOk ( msg ) ; return ; } if ( allowMultiple ) { msg = utils . isNonEmptyString ( message ) ? message : ` ${ this . displayName } ` + "elements but it doesn't" ; await t . expect ( this . selector . count ) . gte ( 1 , msg ) ; } else { msg = utils . isNonEmptyString ( message ) ? message : ` ${ this . displayName } ` + "element but it doesn't" ; await t . expect ( this . selector . count ) . eql ( 1 , msg ) ; } if ( hover && ! isNot ) { await this . hover ( ) ; } }
Asserts that fragment is exist - its selector returns one or more DOM
 elements.
Asserts that fragment is exist - its selector returns one or more DOM elements .
// --------------------------------------------------------------------------- // Handling case when selector must not exist // --------------------------------------------------------------------------- // --------------------------------------------------------------------------- // Handling case when selector must exist // ---------------------------------------------------------------------------