UNPKG

wdio-allure-reporter

Version:

A WebdriverIO plugin. Report results in Allure format.

19 lines (13 loc) 442 B
import {expect} from 'chai' import {Given, Then, When} from 'cucumber' Given('I visit {string}', (url) => browser.url(url)) When('I click the clickable region', () => browser.click('#clickable')) Then('I should get the result: {int}', (num) => { expect(num).to.be.equal(1) }) Then('I run failing step', () => { expect(true).to.be.equal(false) }) Then('I see steps after as pending', () => { expect(true).to.be.equal(true) })