TestCafe v1.12.0 Released
This version brings server-side caching, asynchronous predicates, and multiple bugfixes.
Enhancements
⚙ Server-Side Web Assets Caching
TestCafe’s proxy server can now cache web assets (like images, scripts, videos). When TestCafe revisits the website later, it can load assets from cache. This helps to avoid repetitive network requests, which saves time.
Use any of the following to enable server-side caching:
- the ‘--cache’ CLI flag
- the ‘cache’ configuration file property
- the ‘createTestCafe’ function parameter
Initialize Request Hooks with Async Predicates
The following request hooks now support asynchronous predicate functions:
Example
const logger = RequestLogger(async request => {
return await someFn();
});
Bug Fixes
- Fixed a bug where TestCafe was unable to switch to the main window before/after interacting with a child window (#5930)
- Fixed the
Illegal invocation
error when callingStorage.prototype
methods on theStorageWrapper
object