TestCafe v1.3.0 Released
This release introduces support for the custom TypeScript configuration file and includes numerous bugfixes.
Enhancements #
⚙ Customize TypeScript Compiler Options (#1845) #
Update: v1.3.1 disables automatic detection of the
tsconfig.jsonfile. See v1.3.1 release notes for more information.
TestCafe now allows you to specify the TypeScript compiler options in the tsconfig.json configuration file. You can use these options to enable JSX compilation, import code or typings with paths aliases, set aliases to React typings, or customize other compiler settings.
Define the compilerOptions property in tsconfig.json and specify the compiler options in this property:
{
"compilerOptions": {
"jsx": "react",
"jsxFactory": "myFactory",
"alwaysStrict": true
}
}
Save this file to the directory from which you run tests (or use the tsConfigPath setting in the main configuration file to specify a different location).
See Customize Compiler Options for more information.
Bug Fixes #
- TestCafe now waits for asynchronous tasks in
reportTaskDoneto complete before it exits (#3835) childNodes.lengthnow returns the correct result after you type in aniframe(#3887)- TestCafe no longer hangs when a custom request hook throws an error (#3786)
- Error messages now show the correct selector chains for selectors that use the
withmethod (#3874) - TestCafe can now work with test files located on a Windows network drive (#3918)
- Page elements overlapped by the TestCafe status panel are now scrolled into view correctly (#3924)
- Labels with the
tabIndexandforattributes are now focused correctly (#3501) - Fixed a bug that prevented elements behind the footer from being scrolled up on some pages (#2601)
- Enhanced the previous fix for a Chrome 75 compatibility issue when
t.typeTexttyped each character at the beginning of the input (#3865) - jQuery scroll functions no longer cause errors (testcafe-hammerhead/#2045)