UNPKG

wdio-allure-reporter

Version:

A WebdriverIO plugin. Report results in Allure format.

20 lines (17 loc) 476 B
'use strict' const expect = require('chai').expect describe('"after each" failing', () => { afterEach(() => { return Promise.reject(new Error('for test')) }) it('with passing test', () => { return browser .url('/index.html') .waitForExist('#clickable') .click('#clickable') .getValue('#result') .then((value) => { expect(value).to.be.equal('1') }) }) })