CodeceptJS v1.1.0 Release Notes

  • Major update to CodeceptJS. NodeJS v 8.9.1 is now minimal Node version required. โœ… This brings native async-await support to CodeceptJS. It is recommended to start using await for tests instead of generators:

    async () => {
      I.amOnPage('/page');
      const url = await I.grabTextFrom('.nextPage');
      I.amOnPage(url);
    }
    

    ๐Ÿ”จ Thanks to @Apshenkin for implementation. Also, most helpers were refactored to use async-await. This made our code simpler. We hope that this encourages more users to send pull requests!

    ๐Ÿ‘• We also introduced strict ESLint policies for our codebase. Thanks to @Galkin for that.

    • [Puppeteer] Helper introduced. Learn how to run tests headlessly with Google Chrome's Puppeteer.
    • ๐Ÿ—„ [SeleniumWebdriver] Helper is deprecated, it is recommended to use Protractor with config option angular: false instead.
    • ๐Ÿ‘ [WebDriverIO] nested iframe support in the within block by @reubenmiller. Example:
    within({frame: ['#wrapperId', '[name=content]']}, () => {
      I.click('Sign in!');
      I.see('Email Address');
    });
    I.see('Nested Iframe test');
    I.dontSee('Email Address');
    });
    
    • โœ… [WebDriverIO] Support for ~ locator to find elements by aria-label. This behavior is similar as it is in Appium and helps testing cross-platform React apps. Example:
    <Text accessibilityLabel="foobar">
        CodeceptJS is awesome
    </Text>
    

    โ†‘ This element can be located with ~foobar in WebDriverIO and Appium helpers. Thanks to @flyskywhy

    • ๐Ÿ‘ Allow providing arbitrary objects in config includes by @rlewan
    • ๐Ÿ‘€ [REST] Prevent from mutating default headers by @alexashley. See #789
    • ๐Ÿ›  [REST] Fixed sending empty helpers with haveRequestHeaders in sendPostRequest. By @petrisorionel
    • ๐Ÿ›  Fixed displaying undefined args in output by @APshenkin
    • ๐Ÿ›  Fixed NaN instead of seconds in output by @APshenkin
    • โž• Add browser name to report file for multiple-run by @trollr
    • โšก๏ธ Mocha updated to 4.x