codeceptjs
Advanced tools
Changelog
3.5.1
🛩️ Features
blur
focus
I.
commands` by @davertmik #3739codecept init
setup for Electron tests by @KobeNguyenT. See #3733🐛 Bug Fixes
📖 Documentation
Changelog
3.5.0
🛩️ Features
🪄 AI Powered Test Automation - use OpenAI as a copilot for test automation. #3713 By @davertmik
pause()
heal
plugin for self-healing testsOpenAI
helper[Playwright][Puppeteer][WebDriver] Highlight the interacting elements in debug mode or with highlightElement
option set (#3672) - by @KobeNguyenT
[Playwright] Support for APIs in Playwright (#3665) - by Egor Bodnar
clearField
replaced to use new Playwright APIblur
addedfocus
addedAdded support for multiple browsers in run-workers
(#3606) by @karanshah-browserstack :
Multiple browsers configured as profiles:
exports.config = {
helpers: {
WebDriver: {
url: 'http://localhost:3000',
}
},
multiple: {
profile1: {
browsers: [
{
browser: "firefox",
},
{
browser: "chrome",
}
]
},
And executed via run-workers
with all
argument
npx codeceptjs run-workers 2 all
gpo
command to create page objects as modules or as classes (#3625) - by @KobeNguyenTemptyOutputFolder
config to clean up output before running tests (#3604) - by @KobeNguyenTsecret()
function support to append()
and type()
(#3615) - by @anils92bypassCSP
option to helper's config (#3641) - by @KobeNguyenT🐛 Bug Fixes
--grep
in dry-run command (#3673) - by @KobeNguyenTChangelog
3.4.1
Changelog
3.4.0
Feature('flaky Before & BeforeSuite', { retryBefore: 2, retryBeforeSuite: 3 })
retry: [
{
// enable this config only for flaky tests
grep: '@flaky',
Before: 3 // retry Before 3 times
Scenario: 3 // retry Scenario 3 times
},
{
// retry less when running slow tests
grep: '@slow'
Scenario: 1
Before: 1
}, {
// retry all BeforeSuite 3 times
BeforeSuite: 3
}
]
timeout: [
10, // default timeout is 10secs
{ // but increase timeout for slow tests
grep: '@slow',
Feature: 50
},
]
I.say
. See #3535 by @danielrentzhandleDownloads
requires now a filename param. See #3511 by @PeterNgTrChangelog
3.3.7
🛩️ Features
restartBrowser
- to restart a browser (with different config)_createContextPage
- to create a new browser context with a page from a helpercheckIfAppIsInstalled
in #3507 by @PeterNgTr🐛 Bugfixes
TypeError: Cannot read properties of undefined (reading 'setStatus')
by @dwentland24 in #3438run-rerun
command after complete execution #3464 by @jain-neeerajwaitForTimeout
value on validation. See #3478 by @pmajewski24. Fixes #2589Element "{null: undefined}" was not found
and element ([object Object]) still not present
messages when using object locators. See #3501 and #3502 by @pmajewski24profile
env variable. See #3443 by @dwentland24. Resolves #3339amOnPage
to navigate to about:blank
by @zaxoavoki in #3470 Fixes #2311📖 Documentation
Changelog
3.3.6
run-rerun
command was re-introduced by @dwentland24 in #3436. Use it to perform run multiple times and detect flaky testsretryFailedStep
by default in @codeceptjs/configure
v 0.10. See https://github.com/codeceptjs/configure/pull/26secret
for form encoded string by @PeterNgTr:const secretData = secret('name=john&password=123456');
const response = await I.sendPostRequest('/user', secretData);
gpo
command to work with TypeScript by @PeterNgTr in #3411Changelog
3.3.5
🛩️ Features
Update codecept.conf.js
to get intellisense when writing config file:
/**@type {CodeceptJS.MainConfig}**/
exports.config = {
//...
}
codeceptjs init
to initialize new projects in TS (by @PeterNgTr and @davertmik)node-ts
automatically when using TypeScript setup.🐛 Bugfixes
secret
function by @PeterNgTr📖 Documentation