Changelog History
Page 10
-
v1.6.1-alpha.3 Changes
October 31, 2019Whatβs Changed
- β ExecuteAsyncExpressionCommand can have an empty expression (#4433) @helen-dikareva
-
v1.6.1-alpha.2
October 28, 2019 -
v1.6.1-alpha.1
October 28, 2019 -
v1.6.0 Changes
October 16, 2019v1.6.0 (2019-10-16)
π π Support for macOS 10.15 Catalina
β‘οΈ This version provides compatibility with macOS 10.15. Update TestCafe to v1.6.0 if you run macOS Catalina.
β¨ Enhancements
π± βοΈ Full-Page Screenshots (#1520)
β TestCafe can now take screenshots that show the full page, including content that is not visible due to overflow.
π§ Enable the
fullPage
option in CLI, API or configuration file to capture the full page on all screenshots. You can also pass this option tot.takeScreenshot
to capture a single full-page screenshot.π» Command line interface
π Enable the fullPage parameter of the -s (--screenshots) flag:
testcafe chrome test.js -s fullPage=true
API
π Pass the
fullPage
option to runner.screenshots:runner.screenshots({ fullPage: true});
π§ Configuration file
π Set the screenshots.fullPage property:
{ "screenshots": { "fullPage": true } }
β Test code
π Pass the
fullPage
option to the t.takeScreenshot action:t.takeScreenshot({ fullPage: true});
π± βοΈ Compound Screenshot Options
β‘οΈ The command line interface and configuration file schema have been updated to provide a more concise way to specify the screenshot options.
TestCafe v1.6.0 also supports the existing options to maintain backward compatibility. However, these options are now marked obsolete in the documentation. In the future updates, we will deprecate them and emit warnings.
π» Command line interface
π Screenshot options in CLI are now consolidated under the -s (--screenshots) flag in an
option=value
string:testcafe chrome test.js -s takeOnFails=true,pathPattern=${DATE}\_${TIME}/${FILE\_INDEX}.png
Old Usage New Usage -s artifacts/screenshots
-s path=artifacts/screenshots
-S
,--screenshots-on-fails
-s takeOnFails=true
-p ${DATE}_${TIME}/${FILE_INDEX}.png
-s pathPattern=${DATE}_${TIME}/${FILE_INDEX}.png
π§ Configuration file
π Configuration file properties that specify screenshot options are now combined in the screenshots object:
{ "screenshots": { "path": "artifacts/screenshots", "takeOnFails": true, "pathPattern": "${DATE}\_${TIME}/${FILE\_INDEX}.png" } }
Old Property New Property screenshotPath
screenshots.path
takeScreenshotsOnFails
screenshots.takeOnFails
screenshotPathPattern
screenshots.pathPattern
π± βοΈ Default Screenshot Directory
β TestCafe now saves the screenshots to
./screenshots
if the base directory is not specified.π The --screenshots CLI flag, the runner.screenshots method or the screenshotPath configuration option are not required to take screenshots. For instance, you can run TestCafe with no additional parameters and use the t.takeScreenshot action in test code:
testcafe chrome test.js
β test.js
fixture `My fixture` .page `https://example.com`;test('Take a screenshot', async t =\> { await t.takeScreenshot(); });
π The
path
argument in runner.screenshots is now optional.runner.screenshots({ takeOnFails: true});
π± βοΈ New Option to Disable Screenshots
π We have added an option that allows you to disable taking screenshots. If this option is specified, TestCafe does not take screenshots when a test fails and when the t.takeScreenshot or t.takeElementScreenshot action is executed.
π§ You can disable screenshots with a command line, API or configuration file option:
π the --disable-screenshots command line flag
testcafe chrome my-tests --disable-screenshots
π the
disableScreenshots
option in the runner.run methodrunner.run({ disableScreenshots: true });
π the disableScreenshots configuration file property
{ "disableScreenshots": true}
π Bug Fixes
- π Fixed an error thrown when you pass the
-b
command line flag (#4294) - β TestCafe no longer hangs when Firefox downloads a file (#2741)
- β
You can now start tests from TypeScript code executed with
ts-node
(#4276) - π Fixed TypeScript definitions for client script injection API (PR #4272)
- π Fixed TypeScript definitions for
disablePageCaching
(PR #4274) - π Fixed a bug when anchor links did not navigate to their target destinations (testcafe-hammerhead/#2080)
- π Fixed an error thrown when you pass the
-
v1.6.0-rc.1
October 15, 2019 -
v1.6.0-alpha.1
October 14, 2019 -
v1.5.1-alpha.1
September 18, 2019 -
v1.5.0 Changes
September 12, 2019v1.5.0 (2019-9-12)
β¨ Enhancements
π± βοΈ Page Caching Can be Disabled (#3780)
π TestCafe may be unable to log in to the tested website correctly if the web server uses caching for authentication pages or pages to which users are redirected after login. See the User Roles topic for details.
β If tests fail unexpectedly after authentication, disable page caching in TestCafe.
π Use the fixture.disablePageCaching and test.disablePageCaching methods to disable caching during a particular fixture or test.
fixture .disablePageCaching `My fixture` .page `https://example.com`; test .disablePageCaching ('My test', async t =\> { /\* ... \*/ });
β To disable page caching during the entire test run, use either of the following options:
π the --disable-page-caching command line flag
testcafe chrome my-tests --disable-page-caching
π the
disablePageCaching
option in the runner.run methodrunner.run({ disablePageCaching: true });
π the disablePageCaching configuration file property
{ "disablePageCaching": true}
β If tests run correctly without page caching, we recommend that you adjust the server settings to disable caching for authentication pages and pages to which the server redirects from them.
π Bug Fixes
- π Fixed an error that occured when a selector matched an
<svg>
element (#3684) - π Fixed an issue when the
reporter
configuration file option was not applied (#4234) - π Fixed a warning message about invalid
tsconfig.json
file (#4154) - β
LiveRunner.stop()
now closes the browsers (#4107) - β Quarantined tests now re-run correctly in live mode (#4093)
- π Fixed a bug when client scripts were not injected in live mode when it re-executed tests (#4183)
- β
form.elements.length
now returns the correct value for forms with file inputs (testcafe-hammerhead/#2034) - π Fixed a bug when images were not displayed in inputs with the
image
type (testcafe-hammerhead/#2116) - π Fixed an AngularJS compatibility issue that caused a
TypeError
(testcafe-hammerhead/#2099) - β
TestCafe now works correctly with servers that use
JSZip
to unpack uploaded files (testcafe-hammerhead/#2115)
- π Fixed an error that occured when a selector matched an
-
v1.5.0-rc.2 Changes
September 12, 2019Whatβs Changed
- π Fix wrong options passing for 'disablePageCaching' and 'disablePageReloads' (#4264) @miherlosev
- β quick live fix (#4258) @AlexKamaev
-
v1.5.0-rc.1 Changes
September 11, 2019Whatβs Changed
- β Using debug action in server code step fixed (closes #4245) (#4246) @helen-dikareva
- β svg do not break searching by text (closes #3684) (#4251) @AlexKamaev
- β‘οΈ Update hammerhead (#4253) @Farfurix
- π Fix 'Wrong message " The "<option_name>" option from the configuration file will be ignored. "' (close #4234) (#4242) @miherlosev
- β
Browser is correctly closed after the
LiveModeRunner.stop()
method called (closes #4107) (#4243) @AlexKamaev - β [docs] Fix script injection examples (#4248) @VasilyStrelyaev