2.0.12

Image
Release Webship-js 2.0.12

Webship-js 2.0.12 is the result of reading the book Automated Functional Testing Recipes in full, every word, against what Webship-js really does. Where the two disagreed and Webship-js was wrong, it is fixed: 57 pull requests, each with a test that failed first. Every step pack runs on it with no undefined or ambiguous step.

What a suite may notice:

  • I should not see reads the page the way I should see does: it ignores letter case, no longer reads script and style text, and waits up to 5 seconds for the text to go (#398)
  • the response header "X" should be "Y" compares the whole value (#461); the API base URL is reset for every scenario (#450)
  • there should be no JavaScript errors counts errors only, not warnings (#453)
  • A project step that changes the page (adds, opens, deletes, saves, logs in) is followed by the settle (#317)
  • Restoring an auth state, or starting and stopping a video, keeps the viewport, the smart waits, the error capture and the cookies (#433, #444)

Fixed since Webship-js 2.0.11:

  • A cucumber.js without minWaitTime runs and ends (#401); the end-of-run HTML report is built once, also with parallel workers (#400); the failure screenshot is attached to the failed step (#406)
  • Forms: an empty value, a select list, a multi-value field, a checkbox, a radio button or a field found by its label, legend, name, id or value (#397, #409, #478, #488)
  • Nested iframes, and elements and text inside an iframe found as on the page (#484)
  • One breakpoint registry for every step and tag that names a viewport size (#407); @touch taps for real (#489)
  • Video recording leaves no orphan file and names every video by the pattern (#444); the smart waits keep real time under a fake clock (#487)
  • Selectors, storage and cookies, XML namespaces, YAML numbers, sorted columns, text order, screenshots and file paths: 18 more fixes listed in the release notes

Added:

  • API steps that check a response header is there or is not (#466), and a JSON property saved as a placeholder (#474)
  • PlaywrightWorld exported: a project extends the World of Webship-js and settles its own steps with this.smartSettle() (#496)
  • Every step definition carries five examples, and a check keeps it so (#504)

Install: npm install --save-dev webship-js@2.0.12, then npx init-webship-js for a new project.