CodeceptJS v2.1.0 Release Notes
-
- โ Added global
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();
- โ Added global
secret
function to fill in sensitive data. By @RohanHart:
I.fillField('password', secret('123456'));
- ๐ wdioPlugin Added a plugin to support webdriverio services including selenium-standalone, sauce, browserstack, etc. Sponsored by @GSasu
- ๐ [Appium] Fixed
swipe*
methods by @PeterNgTr - BDD Gherkin Improvements:
- Implemented
run-multiple
for feature files. Sponsored by @GSasu - Added
--features
and--tests
options torun-multiple
. Sponsored by @GSasu - Implemented
Before
andAfter
hooks in step definitions
- Implemented
- ๐ Fixed running tests by absolute path. By @batalov.
- โ Enabled the adding screenshot to failed test for moch-junit-reporter by @PeterNgTr.
- ๐ [Puppeteer] Implemented
uncheckOption
and fixed behavior ofcheckOption
by @aml2610 - ๐ [WebDriver] Fixed
seeTextEquals
on empty strings by @PeterNgTr - ๐ป [Puppeteer] Fixed launch with
browserWSEndpoint
config by @ngadiyak. - ๐ [Puppeteer] Fixed switching back to main window in multi-session mode by @davertmik.
- ๐ [autoLoginPlugin] Fixed using async functions for auto login by @nitschSB
๐ > This release was partly sponsored by @GSasu. Thanks for the support! Do you want to improve this project? [Learn more about sponsorin CodeceptJS
- โ Added global