TestCafe v1.12.0 Release Notes
Release Date: 2021-03-03 // about 3 years ago-
โจ Enhancements
๐ฑ :gear: Server-Side Web Assets Caching (testcafe-hammerhead/#863)
๐ฑ TestCafe's proxy server can now cache web assets (like images, scripts and videos). When TestCafe revisits a website, it loads assets from this cache to save time on repetetive network requests.
To enable server-side caching, use any of the following:
- ๐ 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:
- ๐ RequestHook
- ๐ RequestMock.onRequestTo
- ๐ RequestLogger
Example
const logger = RequestLogger(async request => { return await myAsyncFunction(); });
๐ Bug Fixes
- ๐ the