TestCafe v1.18.0 Release Notes
Release Date: 2021-12-22 // over 2 years ago-
๐ TestCafe v1.18.0 includes a new experimental Selector debugging capability, important improvements for macOS users and a number of routine bug fixes.
๐ If you run TestCafe on macOS, follow the Upgrade Guide to make sure your upgrade goes smoothly.
๐ New Debugging Capabilities (Experimental)
โ If you launch TestCafe with the
--experimental-debug
flag, you can debug Selectors and Client Functions in the Watch panel of a Node.js debugger.๐ macOS improvements
โ TestCafe Browser Tools on Apple Silicon
๐ฆ The TestCafe Browser Tools package is a communication layer that automates browsers on behalf of TestCafe. Both the TestCafe framework and TestCafe Studio include the TestCafe Browser Tools binary.
๐ Earlier versions of TestCafe Browser Tools were optimized for the x86-64 architecture. Apple Silicon Macs ran those binaries through the Rosetta 2 translation layer. Rosetta 2 took up additional space and prevented TestCafe from taking full advantage of the processor.
TestCafe v1.18.0 includes a Universal TestCafe Browser Tools binary that runs natively on both x64 Macs and Apple Silicon Macs.
๐ Follow the Upgrade Instructions to make sure your version of TestCafe Browser Tools is up to date.
๐ TestCafe Browser Tools macOS Permission Fix
๐ The TestCafe Browser Tools binary requires special privileges to automate browsers and take screenshots. Security improvements in recent versions of macOS made these privileges harder to obtain.
๐ Prior to TestCafe v1.18.0, each installation of TestCafe and TestCafe Studio included a TestCafe Browser Tools binary. macOS users with multiple sets of TestCafe Browser Tools had to go through a lengthy process to obtain the necessary permissions.
โ TestCafe v1.18.0 and TestCafe Studio v1.7 address this issue. Beginning with this version, all TestCafe installations share a single TestCafe Browser Tools binary. TestCafe stores this binary in the user's Home directory, inside the hidden
~/.testcafe-browser-tools
folder.๐ Follow the Upgrade Instructions to reset TestCafe Browser Tools' permissions and enable the new binary.
๐ Bug Fixes
- ๐ TestCafe immediately closes new windows (#6680)
- โ
Tests fail with the
TypeError: Invalid value used as weak map key.
error (#6563) - ๐ณ The latest version of the TestCafe Docker image cannot connect to Chrome and Chromium (#6436)
- โ
TestCafe loses test error call stack and outputs the following message instead:
"Uncaught object "[object Object]"
(Issue #6624. Discovered by @danieltroger, PR by @rob4629.) - โ Lack of definitions for two new timeout options results in TypeScript compilation errors (#6713)
- โ TypeScript filter functions erroneously require a Promise return value (#6705)