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 to run-multiple. Sponsored by @GSasu
      • Implemented Before and After hooks in step definitions
    • ๐Ÿ›  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 of checkOption 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