CodeceptJS v2.4.0 Release Notes

Release Date: 2020-01-10 // over 4 years ago
    • ๐Ÿ‘Œ Improved setup wizard with npx codecept init:
      • enabled retryFailedStep plugin for new setups.
      • enabled @codeceptjs/configure to toggle headless/window mode via env variable
      • creates a new test on init
      • removed question on "steps file", create it by default.
    • โœ… Added pauseOnFail plugin. Sponsored by Paul Vincent Beigang and his book "Practical End 2 End Testing with CodeceptJS".
    • โž• Added run-rerun command to run tests multiple times to detect and fix flaky tests. By @Ilrilan and @Vorobeyko.
    • โž• Added Scenario.todo() to declare tests as pending. See #2100 by @Vorobeyko
    • โž• Added support for absolute path for output dir. See #2049 by @elukoyanov
    • ๐Ÿ›  Fixed error in npx codecept init caused by calling console.print. See #2071 by @Atinux.
    • [Filesystem] Methods added by @aefluke:
      • seeFileNameMatching
      • grabFileNames
    • ๐Ÿ›  [Puppeteer] Fixed grabbing attributes with hyphen by @Holorium
    • โœ… [TestCafe] Fixed grabAttributeFrom method by @elukoyanov
    • ๐Ÿ”ง [MockRequest] Added support for Polly config options by @ecrmnn
    • โœ… [TestCafe] Fixes exiting with zero code on failure. Fixed #2090 with #2106 by @koushikmohan1996
    • ๐Ÿ‘€ [WebDriver][Puppeteer] Added basicAuth support via config. Example: basicAuth: {username: 'username', password: 'password'}. See #1962 by @PeterNgTr
    • ๐Ÿ‘• [WebDriver][Appium] Added scrollIntoView by @pablopaul
    • ๐Ÿ›  Fixed #2118: No error stack trace for syntax error by @senthillkumar
    • โž• Added parse() method to data table inside Cucumber tests. Use it to obtain rows and hashes for test data. See #2082 by @Sraime