Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 3.6.5 #4449

Merged
merged 2 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading