codeceptjs
Advanced tools
Changelog
2.5.0
Playwright is an alternative to Puppeteer which works very similarly to it but adds cross-browser support with Firefox and Webkit. Until v1.0 Playwright API is not stable but we introduce it to CodeceptJS so you could try it.
waitForText
when there is no body
element on page (redirect). See #2181 by @VorobeykoScenario.todo
by @VorobeykowaitForFile
seeFileContentsEqualReferenceFile
--colors
option to run
and run-multiple
so you force colored output in dockerized environment. See #2189 by @miraotype
command to enter value without focusing on a field. See #2198 by @xMutaGenxcodeceptjs gt
command to respect config pattern for tests. See #2200 and #2204 by @matheoChangelog
2.4.2
pause({ loginPage, a })
=>
prefix: => loginPage.open()
say
comments to allure reports by @PeterNgTr.waitForClickable
to wait for exact number of seconds by @mirao. Resolves #2166compilerOptions
in jsconfig.json
file on init by @PeterNgTrseeFileContentsEqualReferenceFile
waitForFile
Changelog
2.4.0
npx codecept init
:
run-rerun
command to run tests multiple times to detect and fix flaky tests. By @Ilrilan and @Vorobeyko.Scenario.todo()
to declare tests as pending. See #2100 by @Vorobeykooutput
dir. See #2049 by @elukoyanovnpx codecept init
caused by calling console.print
. See #2071 by @Atinux.seeFileNameMatching
grabFileNames
grabAttributeFrom
method by @elukoyanovbasicAuth: {username: 'username', password: 'password'}
. See #1962 by @PeterNgTrscrollIntoView
by @pablopaulparse()
method to data table inside Cucumber tests. Use it to obtain rows and hashes for test data. See #2082 by @SraimeChangelog
2.3.6
run-workers
now can use glob pattern. By @Ilrilan// Example:
exports.config = {
tests: '{./workers/base_test.workers.js,./workers/test_grep.workers.js}',
}
npx codeceptjs info
which print information about your environment and CodeceptJS configs. By @jamesgeorge007waitForClickable
for waiting clickable element on page.waitForText
XPath context now works correctly. By @HeavikclearField
clear field now awaits TestCafe's promise. By @orihomieChangelog
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 @davertmik