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:

    ๐ŸŽ‰ Initialize Request Hooks with Async Predicates

    The following request hooks now support asynchronous predicate functions:

    Example

    const logger = RequestLogger(async request => {
        return await myAsyncFunction();
    });
    

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fixed a bug in Multiple Windows mode where TestCafe was sometime unable to switch to the main browser window (#5930)
    • ๐Ÿ›  Fixed the Illegal invocation error thrown by TestCafe when calling Storage.prototype methods on a StorageWrapper object (#2526)