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