From 289c2dc9b5bf3e2cc7044d3eabc6eaa2132d06ad Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Tue, 30 Jul 2024 17:01:31 +0200 Subject: [PATCH 1/2] release 3.6.5 --- CHANGELOG.md | 32 ++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19188f500..7767540bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,35 @@ +## 3.6.5 + +❤ī¸ Thanks all to those who contributed to make this release! ❤ī¸ + +🛩ī¸ *Features* +* feat(helper): playwright > wait for disabled (#4412) - by @kobenguyent +``` +it('should wait for input text field to be disabled', () => + I.amOnPage('/form/wait_disabled').then(() => I.waitForDisabled('#text', 1))) + + it('should wait for input text field to be enabled by xpath', () => + I.amOnPage('/form/wait_disabled').then(() => I.waitForDisabled("//*[@name = 'test']", 1))) + + it('should wait for a button to be disabled', () => + I.amOnPage('/form/wait_disabled').then(() => I.waitForDisabled('#text', 1))) + +Waits for element to become disabled (by default waits for 1sec). +Element can be located by CSS or XPath. + +@param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator. +@param {number} [sec=1] (optional) time in seconds to wait, 1 by default. +@returns {void} automatically synchronized promise through #recorder +``` + +🐛 *Bug Fixes* +* fix(AI): AI is not triggered (#4422) - by @kobenguyent +* fix(plugin): stepByStep > report doesn't sync properly (#4413) - by @kobenguyent +* fix: Locator > Unsupported pseudo selector 'has' (#4448) - by @anils92 + +📖 *Documentation* +* docs: setup azure open ai using bearer token (#4434) - by @kobenguyent + ## 3.6.4 ❤ī¸ Thanks all to those who contributed to make this release! ❤ī¸ diff --git a/package.json b/package.json index 1d2402af6..f032bd87a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "codeceptjs", - "version": "3.6.4", + "version": "3.6.5", "description": "Supercharged End 2 End Testing Framework for NodeJS", "keywords": [ "acceptance", From a31348467d8985b699a3557b864e51e2fb3d3e13 Mon Sep 17 00:00:00 2001 From: kobenguyent Date: Tue, 30 Jul 2024 17:07:26 +0200 Subject: [PATCH 2/2] fix: codestyle --- test/unit/locator_test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/locator_test.js b/test/unit/locator_test.js index aec941a8b..41680548f 100644 --- a/test/unit/locator_test.js +++ b/test/unit/locator_test.js @@ -302,9 +302,9 @@ describe('Locator', () => { it('should transform CSS having has pseudo to xpath', () => { const l = new Locator('#submit-element:has(button)', 'css') - const convertedXpath = l.toXPath(); + const convertedXpath = l.toXPath() const nodes = xpath.select(l.toXPath(), doc) - expect(convertedXpath).to.equal('.//*[(./@id = \'submit-element\' and .//button)]') + expect(convertedXpath).to.equal(".//*[(./@id = 'submit-element' and .//button)]") expect(nodes).to.have.length(1) expect(nodes[0].firstChild.data.trim()).to.eql('') })