From 716aa9194a2b9113f10dd398a4c303664ea8758f Mon Sep 17 00:00:00 2001 From: Adil Rakhaliyev <67043367+Bayheck@users.noreply.github.com> Date: Mon, 4 Nov 2024 18:38:26 +0500 Subject: [PATCH] release: v3.7.0 (#8334) ## Purpose _Describe the problem you want to address or the feature you want to implement._ ## Approach _Describe how your changes address the issue or implement the desired functionality in as much detail as possible._ ## References _Provide a link to the existing issue(s), if any._ ## Pre-Merge TODO - [ ] Write tests for your proposed changes - [ ] Make sure that existing tests do not fail --------- Co-authored-by: Bayheck --- .publishrc | 2 +- CHANGELOG.md | 35 +++++++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 39 insertions(+), 4 deletions(-) diff --git a/.publishrc b/.publishrc index bba855ae5f..5b2e51946d 100644 --- a/.publishrc +++ b/.publishrc @@ -8,7 +8,7 @@ "gitTag": true }, "confirm": false, - "publishTag": "rc", + "publishTag": "latest", "prePublishScript": "gulp test-server", "postPublishScript": "" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 90bf7c0fd2..fd696b3a87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,40 @@ # Changelog +## TestCafe v3.7.0 Released + +The TestCafe v3.7.0 update includes the capability to use `Metadata` as an interface, `esm` configuration file option, and a number of bug fixes. + +meta-readmore + +### Declare Metadata Interface + +Earlier versions of TestCafe supported `Metadata` as a type. In TestCafe v3.7.0 and higher, you should declare `Metadata` as an interface. + +```js +// testcafe.global.d.ts +declare module "testcafe" { + global { + interface Metadata { + manual?: boolean, + } + } +} +``` + +### New Configuration File Option: esm + +Earlier versions of TestCafe supported the [ESM Module](https://testcafe.io/documentation/404258/guides/advanced-guides/esm-module-support) from the CLI only. In TestCafe v3.7.0 and higher, you can use the [esm](https://testcafe.io/documentation/402638/reference/configuration-file#esm) configuration file option. Note that this option **only works** with Node.js 18.19-18.xx, and 20.8.0 and up. + +### Bug Fixes + +* CDP client tab creation causes a `WebSocket connection closed` error in Chrome v130 ([#8286](https://github.com/DevExpress/testcafe/issues/8286)). +* An unhandled promise rejection occurs while launching sub-windows ([#8258](https://github.com/DevExpress/testcafe/issues/8258)). +* Assertions that perform visibility checks fail despite elements being visible on the page ([#8237](https://github.com/DevExpress/testcafe/issues/8237)). +* The [t.getCurrentCDPSession](https://testcafe.io/documentation/404913/reference/test-api/testcontroller/getcurrentcdpsession) method returns `unknown` ([#8228](https://github.com/DevExpress/testcafe/issues/8228)). +* [Native Automation] Request hooks are applied to skipped tests ([#8229](https://github.com/DevExpress/testcafe/issues/8229)). +* A `WebSocket connection closed` error occurs while running TestCafe in Chrome v127. The updated version includes the `--disable-search-engine-choice-screen` flag ([#8240](https://github.com/DevExpress/testcafe/issues/8240)). +* A `leaveElement` method call causes an error when the `prevElement` object is removed from the DOM ([#8264](https://github.com/DevExpress/testcafe/issues/8264)). + ## v3.6.2 (2024-07-02) ### Bug Fixes diff --git a/package-lock.json b/package-lock.json index 0984dbccc4..7622c142c5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "testcafe", - "version": "3.7.0-rc.4", + "version": "3.7.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "testcafe", - "version": "3.7.0-rc.4", + "version": "3.7.0", "license": "MIT", "dependencies": { "@babel/core": "^7.23.2", diff --git a/package.json b/package.json index f923a1340b..a25c64e1db 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "testcafe", "description": "Automated browser testing for the modern web development stack.", "license": "MIT", - "version": "3.7.0-rc.4", + "version": "3.7.0", "author": { "name": "Developer Express Inc.", "url": "https://www.devexpress.com/"