Skip to content

Commit

Permalink
Release 3.6.5 (#4449)
Browse files Browse the repository at this point in the history
* release 3.6.5

* fix: codestyle
  • Loading branch information
kobenguyent authored Jul 31, 2024
1 parent 14e465c commit dd826d0
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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! ❤️
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions test/unit/locator_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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('')
})
Expand Down

0 comments on commit dd826d0

Please sign in to comment.