codeceptjs
Advanced tools
Changelog
2.1.3
login
functiontoString()
in DataTablewhen it is defined by @tsuemuraChangelog
2.1.2
inject
to load objects recursively.// locating React element by name, prop, state
I.click({ react: 'component-name', props: {}, state: {} });
I.seeElement({ react: 'component-name', props: {}, state: {} });
Changelog
2.1.1
within
and session
calls inside retryFailedStep
plugin. Fix by @tsuemuraChangelog
2.1.0
inject()
function to require actor and page objects using dependency injection. Recommended to use in page objects, step definition files, support objects:// old way
const I = actor();
const myPage = require('../page/myPage');
// new way
const { I, myPage } = inject();
secret
function to fill in sensitive data. By @RohanHart:I.fillField('password', secret('123456'));
swipe*
methods by @PeterNgTrrun-multiple
for feature files. Sponsored by @GSasu--features
and --tests
options to run-multiple
. Sponsored by @GSasuBefore
and After
hooks in step definitionsuncheckOption
and fixed behavior of checkOption
by @aml2610seeTextEquals
on empty strings by @PeterNgTrbrowserWSEndpoint
config by @ngadiyak.This release was partly sponsored by @GSasu. Thanks for the support! Do you want to improve this project? [Learn more about sponsorin CodeceptJS
Changelog
2.0.8
downloadFile
action by @PeterNgTr.Use it with FileSystem
helper to test availability of a file:
const fileName = await I.downloadFile('a.file-link');
I.amInPath('output');
I.seeFile(fileName);
Actions
amInPath
andseeFile
are taken from FileSystem helper
autoLogin
plugin with Puppeteer by @davertmikseeInField
should throw error if element has no value attrubite. By @PeterNgTrseeTextEquals
passes for any string if element is empty by @PeterNgTr.el.isDisplayed
to match latest webdriverio implementation. Thanks to @LukoyanovElocator.stringify
call by @LukoyanovEChangelog
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 option