codeceptjs
Advanced tools
Changelog
3.5.3
š©ļø Features
startRecordingTraffic
grabRecordedNetworkTraffics
blockTraffic
mockTraffic
flushNetworkTraffics
stopRecordingTraffic
seeTraffic
grabTrafficUrl
dontSeeTraffic
Examples:
// recording traffics and verify the traffic
await I.startRecordingTraffic()
I.amOnPage('https://codecept.io/')
await I.seeTraffic({ name: 'traffics', url: 'https://codecept.io/img/companies/BC_LogoScreen_C.jpg' })
// block the traffic
I.blockTraffic('https://reqres.in/api/comments/*')
await I.amOnPage('/form/fetch_call')
await I.startRecordingTraffic()
await I.click('GET COMMENTS')
await I.see('Can not load data!')
// check the traffic with advanced params
I.amOnPage('https://openai.com/blog/chatgpt')
await I.startRecordingTraffic()
await I.seeTraffic({
name: 'sentry event',
url: 'https://images.openai.com/blob/cf717bdb-0c8c-428a-b82b-3c3add87a600',
parameters: {
width: '1919',
height: '1138',
},
})
š Bugfix
š Deprecated
Changelog
3.5.2
š Bug Fixes
clearField
to previous implementationChangelog
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