Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Releases: patheard/cucumber-puppeteer

Upgrade to latest versions of Puppeteer and Cucumber.js

18 Apr 14:35
Compare
Choose a tag to compare

Support cucumber.js attachments

09 Sep 11:38
Compare
Choose a tag to compare

Support test attachments by exposing this.attach on BrowserScope:

var {After} = require('cucumber');

After(function () {
  this.attach('Some text');
});

Fix how --world-parameters are set on BrowserScope

12 Jul 12:37
Compare
Choose a tag to compare

Support cucumber-js --world-parameters CLI option

11 Jul 12:49
Compare
Choose a tag to compare

Puppeteer launch options can now be passed using the --world-parameters CLI option:

"scripts": {
    "start-headful": "npx cucumber-js --format ./features/support/util/PrettyFormatter --world-parameters \"{\\\"headless\\\": false}\""
}

The world parameters will take precedence over all other launch options.

Revert click action to use puppeteer.click

13 Jun 20:11
Compare
Choose a tag to compare
Revert clickElement to puppeteer.click

Using the DOM $eval element.click() was not scrolling
to elements that are out of view, so click testing was
more difficult (required a scroll into view step).

Emulate mobile device

13 Jun 11:54
Compare
Choose a tag to compare

Puppeteer devices can now be emulated:

When  I open the url "http://localhost:8080/setUserAgent.html" with device "iPhone X"

Set element style action, override Puppeteer launch options

18 May 19:30
Compare
Choose a tag to compare
v1.0.10

Bump version and update readme

Keypress can now focus an element first

17 May 20:58
Compare
Choose a tag to compare

Keypress and file upload

16 May 13:30
Compare
Choose a tag to compare

Added actions that allow the user to:

  • Press a key on the keyboard.
  • Set the value of an input[type="file"] element.

Open URL user agent, a11y report name

15 May 17:08
Compare
Choose a tag to compare
  • Allow setting a user agent when opening a URL.
  • Allow specifying the accessibility report name with performing an a11y check.