Skip to content

Commit dd826d0

Browse files
authored
Release 3.6.5 (#4449)
* release 3.6.5 * fix: codestyle
1 parent 14e465c commit dd826d0

File tree

3 files changed

+35
-3
lines changed

3 files changed

+35
-3
lines changed

CHANGELOG.md

+32
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
## 3.6.5
2+
3+
❤️ Thanks all to those who contributed to make this release! ❤️
4+
5+
🛩️ *Features*
6+
* feat(helper): playwright > wait for disabled (#4412) - by @kobenguyent
7+
```
8+
it('should wait for input text field to be disabled', () =>
9+
I.amOnPage('/form/wait_disabled').then(() => I.waitForDisabled('#text', 1)))
10+
11+
it('should wait for input text field to be enabled by xpath', () =>
12+
I.amOnPage('/form/wait_disabled').then(() => I.waitForDisabled("//*[@name = 'test']", 1)))
13+
14+
it('should wait for a button to be disabled', () =>
15+
I.amOnPage('/form/wait_disabled').then(() => I.waitForDisabled('#text', 1)))
16+
17+
Waits for element to become disabled (by default waits for 1sec).
18+
Element can be located by CSS or XPath.
19+
20+
@param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
21+
@param {number} [sec=1] (optional) time in seconds to wait, 1 by default.
22+
@returns {void} automatically synchronized promise through #recorder
23+
```
24+
25+
🐛 *Bug Fixes*
26+
* fix(AI): AI is not triggered (#4422) - by @kobenguyent
27+
* fix(plugin): stepByStep > report doesn't sync properly (#4413) - by @kobenguyent
28+
* fix: Locator > Unsupported pseudo selector 'has' (#4448) - by @anils92
29+
30+
📖 *Documentation*
31+
* docs: setup azure open ai using bearer token (#4434) - by @kobenguyent
32+
133
## 3.6.4
234

335
❤️ Thanks all to those who contributed to make this release! ❤️

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeceptjs",
3-
"version": "3.6.4",
3+
"version": "3.6.5",
44
"description": "Supercharged End 2 End Testing Framework for NodeJS",
55
"keywords": [
66
"acceptance",

test/unit/locator_test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,9 @@ describe('Locator', () => {
302302

303303
it('should transform CSS having has pseudo to xpath', () => {
304304
const l = new Locator('#submit-element:has(button)', 'css')
305-
const convertedXpath = l.toXPath();
305+
const convertedXpath = l.toXPath()
306306
const nodes = xpath.select(l.toXPath(), doc)
307-
expect(convertedXpath).to.equal('.//*[(./@id = \'submit-element\' and .//button)]')
307+
expect(convertedXpath).to.equal(".//*[(./@id = 'submit-element' and .//button)]")
308308
expect(nodes).to.have.length(1)
309309
expect(nodes[0].firstChild.data.trim()).to.eql('')
310310
})

0 commit comments

Comments
 (0)