This repository has been archived by the owner on Jun 17, 2022. It is now read-only.
Releases: patheard/cucumber-puppeteer
Releases · patheard/cucumber-puppeteer
Upgrade to latest versions of Puppeteer and Cucumber.js
Support cucumber.js attachments
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
Support cucumber-js --world-parameters CLI option
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
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
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
v1.0.10 Bump version and update readme
Keypress can now focus an element first
v1.0.9 Bump version
Keypress and file upload
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
- Allow setting a user agent when opening a URL.
- Allow specifying the accessibility report name with performing an a11y check.