async expectHasBemModifier(bemModifier) {
    // We don't use `getBemModifier()` here as page may not have DOM element or
    // element may not have modifier right now, for example, remote operation
    // is in progress. Instead we use TestCafe's `expect` directly as it has
    // auto waiting feature.
    const className = this
      .cloneBemBase()
      .setMod(bemModifier)
      .toString();

    await t
      .expect(this.selector.hasClass(className))
      .ok(
        `'${this.displayName}' fragment must have BEM modifier ` +
        `'${bemModifier}' (${className}) but it doesn't`
      );
  }
/**
   * Asserts that fragment's selector has specified BEM modifier.
   *
   * @param {String|BemModifier|Array} bemModifier BEM modifier. Examples: 'foo', ['foo'] or ['foo', null], ['foo', 'bar']
   * @return {Promise<void>}
   */
Asserts that fragment's selector has specified BEM modifier.
@param {String|BemModifier|Array} bemModifier BEM modifier.
Asserts that fragment ' s selector has specified BEM modifier . @param { String|BemModifier|Array } bemModifier BEM modifier .
async expectHasBemModifier(bemModifier) {
    const className = this
      .cloneBemBase()
      .setMod(bemModifier)
      .toString();
    await t
      .expect(this.selector.hasClass(className))
      .ok(
        `'${this.displayName}' fragment must have BEM modifier ` +
        `'${bemModifier}' (${className}) but it doesn't`
      );
  }
async expectHasBemModifier ( bemModifier ) { const className = this . cloneBemBase ( ) . setMod ( bemModifier ) . toString ( ) ; await t . expect ( this . selector . hasClass ( className ) ) . ok ( ` ${ this . displayName } ` + ` ${ bemModifier } ${ className } ` ) ; }
Asserts that fragment's selector has specified BEM modifier.
Asserts that fragment ' s selector has specified BEM modifier .
// We don't use `getBemModifier()` here as page may not have DOM element or // element may not have modifier right now, for example, remote operation // is in progress. Instead we use TestCafe's `expect` directly as it has // auto waiting feature.