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 byaria-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
insendPostRequest
. 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