MAR 3, 2021
TestCafe v1.12.0 Released
This version brings server-side caching, asynchronous predicates, and multiple bugfixes.
Enhancements #
⚙ Server-Side Web Assets Caching (testcafe-hammerhead/#863) #
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:
Initialize Request Hooks with Async Predicates #
The following request hooks now support asynchronous predicate functions:
Example
const logger = RequestLogger(async request => {
return await someFn();
});