text: import setup from "../../setup-base";
  import desired from '../desired';
  import B from 'bluebird';
  import _ from 'lodash';
  import { throwMatchableError } from '../../helpers/recipes';
  
  describe('testapp - autoDismissAlerts cap = true', function () {
    let session = setup(this, _.defaults({
      autoDismissAlerts: true}, desired));
    let driver = session.driver;
  
    it('auto-dismiss alerts', async function () {
      let el = await driver.findElement('accessibility id', 'show alert');
      await driver.click(el);
      await B.delay(2000);
      await B.resolve(driver.getAlertText())
        .catch(throwMatchableError)
        .should.be.rejectedWith(/jsonwpCode: 27/);
    });
  });
  