Changelog History
Page 9
-
v1.8.0 Changes
January 17, 2020v1.8.0 (2020-1-17)
π± π Support for the New Microsoft Edge
π TestCafe v1.8.0 supports the new Microsoft Edge based on Chromium. The new Edge is available under the same alias:
edge
.testcafe edge test.js await runner .src('test.js') .browsers('edge') .run();
π Supported Edge's features include headless mode, mobile device emulation, and video recording.
π Bug Fixes
- π Fixed an error thrown when the webpage creates a
Proxy
(testcafe-hammerhead/#2206) by @link89 - β
Event handlers are no longer cleared after the
document.open
function call (testcafe-hammerhead/#1881)
- π Fixed an error thrown when the webpage creates a
-
v1.8.0-rc.3 Changes
January 17, 2020Whatβs Changed
- π Fix remote wizard; Bump version (v1.8.0-rc.3) (#4655) @AndreyBelym
-
v1.8.0-rc.2 Changes
January 17, 2020Whatβs Changed
- β‘οΈ Status bar text update is fixed (#4651) @Dmitry-Ostashev
-
v1.8.0-rc.1 Changes
January 16, 2020Whatβs Changed
- π Support Edge 79; Bump version (v1.8.0-rc.1) (#4650) @AlexKamaev
- β 'window.close' tracking (#4625) @miherlosev
- π Improve waiting for the last command result (#4598) @miherlosev
- β CreateTempProfile for Microsoft Edge Chromium Beta (#4633) @AlexKamaev
- β [docs] Fix a wrong example in 'Wait mechanisms' (#4637) @VasilyStrelyaev
- β [docs] Add the 'How it works' article (#4626) @VasilyStrelyaev
- β‘οΈ [docs] Update the year in the license (#4627) @VasilyStrelyaev
- β‘οΈ Update Bowser, add the "Electron" user agent case (#4609) @Farfurix
- β Rename 'pageId' term to 'windowId' (close #4586) (#4608) @miherlosev
- β
[docs] Fix
filterHidden
docs example (#4611) @mattmanske - β‘οΈ [docs] Update the A-Z index (#4605) @VasilyStrelyaev
- β Rewrite the browser/connection/remotes-queue.js file to TypeScript (#4607) @miherlosev
- π Improve error handling in IPC utils (#4591) @AndreyBelym
- β Progress bar display is fixed (#4596) @Dmitry-Ostashev
- β Add the --experimental-compiler-service flag (#4590) @AndreyBelym
- β [Multi window mode]: Browser console messages (#4578) @miherlosev
-
v1.7.1 Changes
December 19, 2019v1.7.1 (2019-12-19)
π Bug Fixes
- β Status bar has been redesigned to fit the debug panel into small screens and emulated mobile devices (#2510)
- β Added timestamp to requests logged with
RequestLogger
(#3738) - β
t.typeText
now fires thebeforeInput
event (#4486) - β
The
t.hover
action can now be detected with the jQuery:hover
pseudoselector (#4493) - π
Object.assign
now mergesSymbol
properties on tested pages correctly (testcafe-hammerhead/#2189)
-
v1.7.1-rc.1 Changes
December 18, 2019Whatβs Changed
- β¬οΈ Bump version (v1.7.1-rc.1); Allow creating branches in the core repo (#4581) @AndreyBelym
- β [pull] master from DevExpress:master (#11) @pull
- β [docs] Add info about publishing reports on Azure (#4534) @VasilyStrelyaev
- β‘οΈ [docs] Updated roadmap (#4580) @kirovboris
- β [docs] Add custom method's returnDOMNodes description (#4538) @VasilyStrelyaev
- β [docs] Add an example and FAQ entry about dynamic IDs (closes #4007) (#4532) @VasilyStrelyaev
- β Implement reporter OnTestRunActionDone/Start methods (closes #4507) (#4547) @AlexKamaev
- β
fire
beforeInput
(closes #4486 after hh is published) (#4506) @AlexKamaev - β‘οΈ [docs] Update the No Response bot message (#4577) @AlexSkorkin
- β Command processing life cycle in multiple window mode (#4485) @miherlosev
- β [docs] Add new contributors to README.md (#4573) @Marketionist
- β [docs] Fixed code example (#4572) @kirovboris
- β [docs] Fixed code styling in examples for User Roles (#4570) @Marketionist
- π§ [WIP]test PR but can be merged (#4559) @AlexKamaev
- β Implement IPC transport (#4533) @AndreyBelym
- β Status bar redesigned (closes #2510) (#4490) @Dmitry-Ostashev
- β [docs] Corrections (#4539) @VasilyStrelyaev
- β [docs] Add flags to BitBucket examples (#4525) @VasilyStrelyaev
- π³ [docs] Add troubleshooting info about Chromium flags in Docker (#4517) @VasilyStrelyaev
- β [docs] Add description for request's timestamp parameters (#4519) @VasilyStrelyaev
- β add 'timestamp' for the logged request (close #3738) (#4514) @miherlosev
-
v1.7.0 Changes
November 21, 2019v1.7.0 (2019-11-21)
β¨ Enhancements
π± βοΈ Identify the Browser and Platform in Test Code (#481)
β TestCafe now allows you to obtain information about the current user agent. These data identify the operating system, platform type, browser, engine, etc.
π Use the t.browser property to access user agent data.
import { Selector } from 'testcafe'; fixture `My fixture` .page `https://example.com`;test('My test', async t =\> { if (t.browser.name !== 'Chrome') await t.expect(Selector('div').withText('Browser not supported').visible).ok(); });
π The t.browser object exposes the following properties:
Property Type Description Example π alias String The browser alias string specified when tests were launched. π name String The browser name. π version String The browser version. π platform String The platform type. π headless Boolean true
if the browser runs in headless mode.π os Object The name and version of the operating system. π engine Object The name and version of the browser engine. π userAgent String The user agent string. π prettyUserAgent String Formatted string with the browser's and operating system's name and version. π The following example shows how to create a beforeEach hook that runs for specific browser engines.
import { Selector } from 'testcafe'; fixture `My fixture` .page `https://example.com` .beforeEach(async t =\> { if (t.browser.engine.name === 'Blink') return; // ... });
π You can also use t.browser to generate the screenshot path based on the browser name. This prevents screenshots taken with t.takeElementScreenshot in different browsers from being overwritten.
import { Selector } from 'testcafe'; fixture `My fixture` .page `https://example.com`;test('My test', async t =\> { const loginButton = Selector('div').withText('Login'); await t.takeElementScreenshot(loginButton, `auth/${t.browser.name}/login-button.png`); });
π For more information and examples, see Identify the Browser and Platform.
π Bug Fixes
- π Fixed an error on pages that submit forms immediately after loading (#4360 by @bill-looby-i)
- β TestCafe now scrolls to elements located inside Shadow DOM roots (#4222)
- π Fixed an error that occurred when TypeScripts tests that use Node.js globals were run with TestCafe installed globally (#4437)
- π Fixed the TypeScript definition for the
Selector.withAttribute
method's return type (#4448) - π Fixed an issue when custom browser providers could not take screenshots (#4477)
- π Support pages that use advanced ES6 module export (testcafe-hammerhead/#2137)
- π Fixed compatibility issues with Salesforce Lightning Web Components (testcafe-hammerhead/#2152)
-
v1.7.0-rc.1
November 20, 2019 -
v1.6.2-rc.1 Changes
November 20, 2019Whatβs Changed
- β¬οΈ Bump hammerhead (v14.11.1); Bump version (v1.6.2-rc.1) (#4497) @AndreyBelym
- β Use new browser tools and improve authentication mechanism (#4424) @AndreyBelym
- π Fix 'Provide the capability to access browser information from test code' (closes #481) (#4349) @Farfurix
- β create screenshot dir if plugin is used (closes #4477) (#4488) @AlexKamaev
- β Add recorder command type and treat is as a service one (#4458) @arubtsov
- β [docs] Add a link to the GitHub Action to README (#4484) @VasilyStrelyaev
- β‘οΈ [docs] Update the roadmap (#4483) @VasilyStrelyaev
- β [docs] Add a GitHub Actions topic (#4478) @VasilyStrelyaev
- π Allow installing TestCafe directly from Git (#4432) @AndreyBelym
- β‘οΈ Update hammerhead (#4464) @LavrovArtem
- β Remove outdated tasks (#4462) @miherlosev
- π Fix the return type for Selector.withAttribute (closes #4448) (#4457) @AndreyBelym
- β Remove unnecessary hammerhead local copy (#4454) @miherlosev
- π Allow again using Node.js globals in TypeScript tests (closes #4437) (#4438) @AndreyBelym
- β scroll to element that is in shadow root (closes #4222) (#4397) @AlexKamaev
- β Protect form submit from pre-init use (close 4360) (#4364) @bill-looby-i
-
v1.6.1 Changes
October 29, 2019v1.6.1 (2019-10-29)
π Bug Fixes
- π Fixed a conflict with Jest type definitions that caused a TypeScript error (#4405)
- β TestCafe no longer deletes screenshots with no page content detected (#3552)
- π Fixed a bug when TestCafe did not use the default path to the test files (#4331)
- π Fixed a bug when the FFmpeg library could not be detected in the
PATH
locations (PR #4377) - β Added a TypeScript definition for
runner.tsConfigPath
(PR #4403)