Releases: codeceptjs/CodeceptJS
3.7.2
3.7.2
❤️ Thanks all to those who contributed to make this release! ❤️
🛩️ Features
🐛 Bug Fixes
- fix(stepByStepReport): no records html is generated when running with run-workers (#4638)
- fix(webdriver): bidi error in log with webdriver (#4850)
- fix(types): TS types of methods (Feature|Scenario)Config.config (#4851)
- fix: redundant popup log (#4830)
- fix(webdriver): grab browser logs using bidi protocol (#4754)
- fix(webdriver): screenshots for sessions (#4748)
📖 Documentation
3.6.10
What's Changed
- fix(cli): missing failure counts when there is failedHooks by @kobenguyent in #4633
Full Changelog: 3.6.9...3.6.10
3.6.9
What's Changed
3.6.8
❤️ Thanks all to those who contributed to make this release! ❤️
🛩️ Features
- feat(cli): mask sensitive data in logs (#4630) - by @kobenguyent
export const config: CodeceptJS.MainConfig = {
tests: '**/*.e2e.test.ts',
retry: 4,
output: './output',
maskSensitiveData: true,
emptyOutputFolder: true,
...
I login {"username":"[email protected]","password": "****"}
I send post request "https://localhost:8000/login", {"username":"[email protected]","password": "****"}
› [Request] {"baseURL":"https://localhost:8000/login","method":"POST","data":{"username":"[email protected]","password": "****"},"headers":{}}
› [Response] {"access-token": "****"}
- feat(REST): DELETE request supports payload (#4493) - by @schaudhary111
I.sendDeleteRequestWithPayload('/api/users/1', { author: 'john' });
🐛 Bug Fixes
- fix(playwright): Different behavior of see* and waitFor* when used in within (#4557) - by @kobenguyent
- fix(cli): dry run returns no tests when using a regex grep (#4608) - by @kobenguyent
> codeceptjs dry-run --steps --grep "(?=.*Checkout process)"
- fix: Replace deprecated faker.name with faker.person (#4581) - by @thomashohn
- fix(wdio): Remove dependency to devtools (#4563) - by @thomashohn
- fix(typings): wrong defineParameterType (#4548) - by @kobenguyent
- fix(typing):
Locator.build
complains the empty locator (#4543) - by @kobenguyent - fix: add hint to
I.seeEmailAttachment
treats parameter as regular expression (#4629) - by @ngraf
Add hint to "I.seeEmailAttachment" that under the hood parameter is treated as RegExp.
When you don't know it, it can cause a lot of pain, wondering why your test fails with I.seeEmailAttachment('Attachment(1).pdf') although it looks just fine, but actually I.seeEmailAttachment('Attachment\\(1\\).pdf is required to make the test green, in case the attachment is called "Attachment(1).pdf" with special character in it.
- fix(playwright): waitForText fails when text contains double quotes (#4528) - by @DavertMik
- fix(mock-server-helper): move to stand-alone package: https://www.npmjs.com/package/@codeceptjs/mock-server-helper (#4536) - by @kobenguyent
- fix(appium): issue with async on runOnIos and runOnAndroid (#4525) - by @kobenguyent
- fix: push ws messages to array (#4513) - by @kobenguyent
- fix: missing invisi-data lib when upgrading codeceptjs
📖 Documentation
- fix(docs): typo in ai.md (#4501) - by @tomaculum
New Contributors
- @schaudhary111 made their first contribution in #4493
- @thomashohn made their first contribution in #4551
Full Changelog: 3.6.6...3.6.9
3.6.8
What's Changed
3.6.8
❤️ Thanks all to those who contributed to make this release! ❤️
🛩️ Features
- feat(cli): mask sensitive data in logs (#4630) - by @kobenguyent
export const config: CodeceptJS.MainConfig = {
tests: '**/*.e2e.test.ts',
retry: 4,
output: './output',
maskSensitiveData: true,
emptyOutputFolder: true,
...
I login {"username":"[email protected]","password": "****"}
I send post request "https://localhost:8000/login", {"username":"[email protected]","password": "****"}
› [Request] {"baseURL":"https://localhost:8000/login","method":"POST","data":{"username":"[email protected]","password": "****"},"headers":{}}
› [Response] {"access-token": "****"}
- feat(REST): DELETE request supports payload (#4493) - by @schaudhary111
I.sendDeleteRequestWithPayload('/api/users/1', { author: 'john' });
🐛 Bug Fixes
- fix(playwright): Different behavior of see* and waitFor* when used in within (#4557) - by @kobenguyent
- fix(cli): dry run returns no tests when using a regex grep (#4608) - by @kobenguyent
> codeceptjs dry-run --steps --grep "(?=.*Checkout process)"
- fix: Replace deprecated faker.name with faker.person (#4581) - by @thomashohn
- fix(wdio): Remove dependency to devtools (#4563) - by @thomashohn
- fix(typings): wrong defineParameterType (#4548) - by @kobenguyent
- fix(typing):
Locator.build
complains the empty locator (#4543) - by @kobenguyent - fix: add hint to
I.seeEmailAttachment
treats parameter as regular expression (#4629) - by @ngraf
Add hint to "I.seeEmailAttachment" that under the hood parameter is treated as RegExp.
When you don't know it, it can cause a lot of pain, wondering why your test fails with I.seeEmailAttachment('Attachment(1).pdf') although it looks just fine, but actually I.seeEmailAttachment('Attachment\\(1\\).pdf is required to make the test green, in case the attachment is called "Attachment(1).pdf" with special character in it.
- fix(playwright): waitForText fails when text contains double quotes (#4528) - by @DavertMik
- fix(mock-server-helper): move to stand-alone package: https://www.npmjs.com/package/@codeceptjs/mock-server-helper (#4536) - by @kobenguyent
- fix(appium): issue with async on runOnIos and runOnAndroid (#4525) - by @kobenguyent
- fix: push ws messages to array (#4513) - by @kobenguyent
📖 Documentation
- fix(docs): typo in ai.md (#4501) - by @tomaculum
New Contributors
- @schaudhary111 made their first contribution in #4493
- @thomashohn made their first contribution in #4551
Full Changelog: 3.6.6...3.6.8
3.6.6
What's Changed
3.6.6
❤️ Thanks all to those who contributed to make this release! ❤️
🛩️ Features
- feat(locator): add withAttrEndsWith, withAttrStartsWith, withAttrContains (#4334) - by @Maksym-Artemenko
- feat: soft assert (#4473) - by @kobenguyent
- Soft assert
Zero-configuration when paired with other helpers like REST, Playwright:
// inside codecept.conf.js
{
helpers: {
Playwright: {...},
SoftExpectHelper: {},
}
}
// in scenario
I.softExpectEqual('a', 'b')
I.flushSoftAssertions() // Throws an error if any soft assertions have failed. The error message contains all the accumulated failures.
- feat(cli): print failed hooks (#4476) - by @kobenguyent
🐛 Bug Fixes
- fix(AI): minor AI improvements - by @DavertMik
- fix(AI): add missing await in AI.js (#4486) - by @tomaculum
- fix(playwright): no async save video page (#4472) - by @kobenguyent
- fix(rest): httpAgent condition (#4484) - by @kobenguyent
- fix: DataCloneError error when
I.executeScript
command is used withrun-workers
(#4483) - by @code4muktesh - fix: no error thrown from rerun script (#4494) - by @lin-brian-l
// fix the validation of httpAgent config. we could now pass ca, instead of key/cert.
{
helpers: {
REST: {
endpoint: 'http://site.com/api',
prettyPrintJson: true,
httpAgent: {
ca: fs.readFileSync(__dirname + '/path/to/ca.pem'),
rejectUnauthorized: false,
keepAlive: true
}
}
}
}
📖 Documentation
- doc(AI): minor AI improvements - by @DavertMik
New Contributors
- @Maksym-Artemenko made their first contribution in #4334
- @code4muktesh made their first contribution in #4483
- @tomaculum made their first contribution in #4486
- @lin-brian-l made their first contribution in #4494
Full Changelog: 3.6.5...3.6.6
3.6.5
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
Full Changelog: 3.6.4...3.6.5
3.6.4
What's Changed
❤️ Thanks all to those who contributed to make this release! ❤️
🛩️ Features
- feat(rest): print curl (#4396) - by @kobenguyent
Config:
...
REST: {
...
printCurl: true,
...
}
...
› [CURL Request] curl --location --request POST https://httpbin.org/post -H ...
- feat(AI): Generate PageObject, added types, shell improvement (#4319) - by @DavertMik
- added
askForPageObject
method to generate PageObjects on the fly - improved AI types
- interactive shell improved to restore history
- added
🐛 Bug Fixes
- fix(heal): wrong priority (#4394) - by @kobenguyent
📖 Documentation
- AI docs improvements
Full Changelog: 3.6.3...3.6.4
3.6.3
What's Changed
❤️ Thanks all to those who contributed to make this release! ❤️
🛩️ Features
- feat(plugin): coverage with WebDriver - devtools (#4349) - by @kobenguyent
🐛 Bug Fixes
- fix(cli): stale process (#4367) - by @Horsty80 @kobenguyent
- fix(runner): screenshot error in beforeSuite/AfterSuite (#4385) - by @kobenguyent
- fix(cli): gherkin command init with TypeScript (#4366) - by @andonary
- fix(webApi): error message of dontSeeCookie (#4357) - by @a-stankevich
📖 Documentation
- fix(doc): Expect helper is not described correctly (#4370) - by @kobenguyent
- fix(docs): some strange characters (#4387) - by @kobenguyent
- fix: Puppeteer helper doc typo (#4369) - by @yoannfleurydev
New Contributors
- @yoannfleurydev made their first contribution in #4369
Full Changelog: 3.6.2...3.6.3
3.6.2
What's Changed
- fix(playwright): set the record video resolution by @kobenguyent in #4311
- chore: disable redundant ppt tests by @kobenguyent in #4312
- chore(deps-dev): bump playwright from 1.43.0 to 1.43.1 by @dependabot in #4301
- chore(deps): bump joi from 17.12.2 to 17.12.3 by @dependabot in #4299
- chore(deps): bump mocha from 10.3.0 to 10.4.0 by @dependabot in #4298
- chore(deps): bump pactum from 3.6.6 to 3.6.7 by @dependabot in #4316
- fix(docs): wrong method is mentioned by @kobenguyent in #4320
- feat: locate element with withClassAttr by @kobenguyent in #4321
- chore(deps-dev): bump electron from 28.2.1 to 30.0.1 by @dependabot in #4324
- chore(deps-dev): bump webdriverio from 8.35.1 to 8.36.1 by @dependabot in #4325
- chore(deps): bump joi from 17.12.3 to 17.13.0 by @dependabot in #4326
- Update README.md by @kobenguyent in #4329
- fix: wrong format docs by @kobenguyent in #4330
- chore(deps-dev): bump @wdio/utils from 8.33.1 to 8.36.1 by @dependabot in #4327
- feat(wd): screenshots for sessions by @kobenguyent in #4322
- fix: several issues of stepByStep report by @kobenguyent in #4331
- feat(REST): support httpAgent conf by @kobenguyent in #4328
- release 3.6.2 by @kobenguyent in #4332
Full Changelog: 3.6.1...3.6.2
3.6.1
Fixed regression in interactive pause.