- Added a summary for changed snapshots and failing tests in test outputs
- The hosting server now serves hidden files (dotfiles).
- Fixed a browser context leak that could crash Chrome and cause errant test failures. Chrome windows now shut down more reliably.
- Test tasks that panic are now counted as failures.
- Added a
--update(-u) flag that automatically accepts all snapshot changes. It can also be set via theTOOLPROOF_UPDATEenvironment variable.
- Add support for ARM64 Windows
- Ensure only one hosting server exists at a time within a test context. A server hosted in a previous step will now be closed when starting another.
- Fixed binary permissions when executing toolproof through npm
- Added graceful shutdown on Ctrl+C, cancelling in-progress tests
- Added a
--pathargument that runs all tests under a directory - Added debugger mode with
--debugger, which runs one step at a time in a visible browser
- Fixed Chrome browser windows not being closed after a test run
- Updated dependencies
- Updated wax to 0.6.0
- Updated async-recursion to 1.1.1
- Updated similar to 2.7.0
- Updated inventory to 0.3.20
- Updated tempfile to 3.20.0
- Updated console to 0.16
- Updated async-trait to 0.1.88
- Updated schematic to 0.18.12
- Updated strip-ansi-escapes to 0.2.1
- Updated semver to 1.0.26
- Added a
--retry-countoption to retry failed tests
- Added placeholders for
toolproof_process_directory_unixandtoolproof_test_directory_unix - Improved error logging when a file fails to parse
- Added browser instruction:
In my browser, I scroll to the selector {selector}- NB: Click and hover steps already handled this, so this new instruction is primarily useful for screenshots.
- Added a
toolproof_test_portdefault placeholder.
- If the
I click {text}action finds multiple options, but only one is an exact match, it will now click it rather than error.
- Added support for newline and tab characters in the
I type {text}instruction
- Added browser instruction:
In my browser, I press the {keyname} key - Added browser instruction:
In my browser, I type {text}
- Fix the "I click" action when the provided text contains an apostrophe/single quote.
- Allow the generic "I click" action to click
optionelements, and elements with arole="option"attribute - Add a
supported_versionsconfiguration option to ensure Toolproof isn't running a version older than your tests support - Add a
failure_screenshot_locationconfiguration option to enable Toolproof to automatically screenshot the browser on test failure
- Allow the generic "I click" action to click elements with a
role="button"attribute
- Made the browser click/hover steps more resilient to DOM nodes detaching mid-action
- Add
browser-timeout/browser_timeoutsetting that changes the default timeout for browser actions such astoolproof.querySelector()
- Add automatic wait-and-timeout to Toolproof actions that get elements
- Add instructions for clicking and hovering elements on a page
- Added a timeout to all test steps
- Add screenshot instructions to Toolproof
- Add
extractconcept to pull retrievals to disk
- Log inner macro steps
- Added macro feature to Toolproof
- Add
before_allcommands to the Toolproof config
- Improve resilience launching a Chrome instance
- Adds
-n <name>/--name <name>arguments to the CLI to run a specific test
- Adds platform flags for tests and individual steps
- Adds default placeholders for directories
- Base toolproof release