codeceptjs
Advanced tools
Changelog
2.3.5
Changelog
2.3.4
parse-function
package. Fixed by @pablopaul.--profile
option to run-workers
by @orihomieFeatureConfig
and ScenarioConfig
by @sseliverstovChangelog
2.3.3
// when data-test-id is a special test attribute
// enable and configure plugin to replace this
I.click({ css: '[data-test-id=register_button]');
// with this
I.click('$register_button');
pressKey
improvements by @martomo:
Changed pressKey method to resolve issues and extend functionality.
pressKeyUp
and pressKeyDown
to press and release modifier keys like Control
or Shift
. By @martomo.grabElementBoundingRect
by @PeterNgTr.Config.addHook
to add a function that will update configuration on load.@codeceptjs/configure
package with a collection of common configuration patterns.NUMBER_OF_WORKERS
env variable. By @PeterNgTr.Changelog
2.3.2
run-workers
to run with complex configs. See #1887 by @nitschSB--suites
option to run-workers
to split suites by workers (tests of the same suite goes to teh same worker). Thanks @nitschSB.I.retry()
affected retries of next steps. By @davertmikChangelog
2.3.1
Changelog
2.3.0
run-workers
command as faster and simpler alternative to run-multiple
. Requires NodeJS v12# run all tests in parallel using 3 workers
npx codeceptjs run-workers 3
dry-run
command to print steps of test scenarios without running them. Fails to execute scenarios with grab*
methods or custom code. See #1825 for more details.npx codeceptjs dry-run
switchTo
by @KadoBOTgrabGeoLocation()
setGeoLocation()
codeceptjs
command prints list of all available commandscodeceptjs -V
flag to print version informationrun-multiple
by @z4o4zevent.step.comment
event for all comment steps like I.say
or gherking steps.Changelog
2.2.1
codeceptjs init
.grabPageScrollPosition
scrollPageToTop
scrollPageToBottom
scrollTo
switchTo
tsconfig.json
to jsconfig.json
on init. Fixed autocompletion for Visual Studio Code.uploadFile
by @VikalpP. See #1797pressKeyDelay
option. By @hubiduData().Scenario().injectDependencies()
is not a function by @andrerleao--path
option on gherkin:snippets
command by @asselin. See #1790--feature
option to gherkin:snippets
to enable creating snippets for a subset of .feature files. See #1803 by @asselin.Changelog
2.2.0
// use Polly & Puppeteer helpers
I.mockRequest('GET', '/api/users', 200);
I.mockRequest('POST', '/users', { user: { name: 'fake' }});
grab
commandsrun-multiple
(parallel execution) improvements:
bootstrapAll
must be called before creating chunks. #1741 by @VorobeykoChangelog
2.1.5
_output/cli-history
file. By @hubidugrabAllWindowHandles
returns all window handlesgrabCurrentWindowHandle
returns current window handleswitchToWindow
switched to window by its handlehost
as configuration by @trinhphamrun-multiple
command when tests
config option is undefined (in Gherkin scenarios). By @gkushang.Changelog
2.1.4
aria-label
title
aria-labelledby
downloadFile
handleDownloads
replacing downloadFile
run-multiple
with long config. By @artvinnuncheckOption
method introduced by @PeterNgTrawait
by @tsuemuraUnhandledPromiseRejectionWarning: "Execution context was destroyed...
by @adrielcodecopath
parameter to bdd:snippets
command to append snippets to a specific file. By @cthorsen31.output
parameter to def
command by @LukoyanovE.grabDataFromPerformanceTiming
by @PeterNgTr.0.19.0
by @SteveShaffersecret
and inject
function.