codeceptjs
Advanced tools
Changelog
2.0.7
rightClick
method implemented (fixed) in a standard way. By @davertmikscreenshotsForAllureReport
config options to automatically attach screenshots to allure reports. By @PeterNgTraddLabel
method by @VorobeykowithChild
and withDescendant
to match deep nested siblings by @Vorobeyko.Changelog
2.0.6
puppeteerCoverage
plugin added to collect code coverage in JS. By @dvillaramarun-multiple
to respect the generated overridden config by @kinyatcontainer.append()
. Introduced lodash.merge()
. By @VorobeykoScenario().injectDependencies
by @tsemurastepByStepReport
by @tsuemuragrabHTMLFrom
to return innerHTML value by @Holorium. Fixed compatibility with WebDriverIO.grabHTMLFrom
to return one HTML vlaue for one element matched, array if multiple elements found by @davertmik.grabHTMLFrom
by @davertmikbootstrapAll
and teardownAll
launch with path as argument by @LukoyanovEbootstrapAll
and teardownAll
calls from exported object by @LukoyanovEwaitUntil
by @LukoyanovEhostname
config option overwrite when setting a cloud provider. By @LukoyanovEdragSlider
method implemented by @DavertMikscrollTo
to use new webdriverio API by @PeterNgTrLocator.withDescendant()
method to find an element which contains a descendant (child, grandchild) by @Vorobeykothrows()
, fails()
, retry()
, timeout()
, config()
functions for data driven tests. By @jjm409Changelog
2.0.4
grabAttributeFrom
returns an array when multiple elements matched. By @PeterNgTrwaitForElement
, waitForVisible
, waitForInvisible
. By @eduardofinottiLogged Test name | [object Object]
when used Data().Scenario(). By @VorobeykoattachFile
to work with hidden elements. Fixed in #1460 by @tsuemuraChangelog
2.0.3
Maximum stack trace
issue in retryFailedStep
plugin.locate()
function into the interactive shell.waitForElement
waitForVisible
waitForInvisible
Changelog
2.0.2
Interface: parseInput
while in interactive pausefetchId
config option to override id retrieval from payloadonRequest
config option to update request in realtimereturnId
config option to return ids of created items instead of items themvelvesheaders
config option to override default headers.onRequest
config optionChangelog
2.0.1
codecept init
.Changelog
2.0.0
[WebDriver] Breaking Change. Updated to webdriverio v5. New helper WebDriver helper introduced.
Upgrade plan:
npm install webdriverio@5 --save
Replace WebDriverIO
=> WebDriver
helper name in config.
Read webdriverio changelog. If you were using webdriver API in your helpers, upgrade accordingly.
We made WebDriver helper to be compatible with old API so no additional changes required.
If you face issues using webdriverio v5 you can still use webdriverio 4.x and WebDriverIO helper. Make sure you have
webdriverio: ^4.0
installed.
Known issues: attachFile
doesn't work with proxy server.
[Appium] Breaking Change. Updated to use webdriverio v5 as well. See upgrade plan ↑
[REST] Breaking Change. Replaced unirest
library with axios
.
Upgrade plan:
unirest
requests/responses in your tests change them to axios format.Breaking Change. Generators support in tests removed. Use async/await
in your tests
Using codecept.conf.js
as default configuration format
Fixed "enametoolong" error when saving screenshots for data driven tests by @PeterNgTr
Updated NodeJS to 10 in Docker image
[Pupeteer] Add support to use WSEndpoint. Allows to execute tests remotely. [See #1350] by @gabrielcaires (https://github.com/codeceptjs/CodeceptJS/pull/1350)
In interactive shell [Enter] goes to next step. Improvement by @PeterNgTr.
I.say
accepts second parameter as color to print colorful comments. Improvement by @PeterNgTr.
I.say('This is red', 'red'); //red is used
I.say('This is blue', 'blue'); //blue is used
I.say('This is by default'); //cyan is used
Changelog
1.4.6
dragSlider
action added by @PeterNgTr--invert
option to run-multiple
command by @LukoyanovEoutput
to customize output directory in stepByStepReport plugin. By @fpsthirtyChangelog
1.4.5
ts-node/register
to register TypeScript parsershould
to register should-style assertions"require": ["ts-node/register", "should"]
run-parallel
now accepts --override
flag. Thanks to @ClemCBRUN_MULTIPLE
env variable to Docker config. Allows to run tests in parallel inside a container. Thanks to @PeterNgTrScenario.tag()
Changelog
1.4.4
click
no longer waits for navigationclickLink
method added. Performs a click and waits for navigation.run
command and ignored on list
, def
, etc. Fix by @LukoyanovE