CodeceptJS v2.3.3 Release Notes

Release Date: 2019-10-15 // over 4 years ago
    • 🔌 customLocator plugin introduced. Adds a locator strategy for special test attributes on elements.
    // when data-test-id is a special test attribute
    // enable and configure plugin to replace this
    I.click({ css: '[data-test-id=register_button]');
    // with this
    I.click('$register_button');
    
    • [Puppeteer][WebDriver] pressKey improvements by @martomo: 🔄 Changed pressKey method to resolve issues and extend functionality.
      • Did not properly recognize 'Meta' (or 'Command') as modifier key.
      • Right modifier keys did not work in WebDriver using JsonWireProtocol.
      • 'Shift' + combination would not reflect actual keyboard behavior.
      • Respect sequence with multiple modifier keys passed to pressKey.
      • Added support to automatic change operation modifier key based on operating system.
    • 🚀 [Puppeteer][WebDriver] Added pressKeyUp and pressKeyDown to press and release modifier keys like Control or Shift. By @martomo.
    • [Puppeteer][WebDriver] Added grabElementBoundingRect by @PeterNgTr.
    • 👀 [Puppeteer] Fixed speed degradation introduced in #1306 with accessibility locators support. See #1953.
    • ➕ Added Config.addHook to add a function that will update configuration on load.
    • 🔧 Started @codeceptjs/configure package with a collection of common configuration patterns.
    • 🚚 [TestCafe] port's management removed (left on TestCafe itself) by @orihomie. Fixes #1934.
    • 🛠 [REST] Headers are no more declared as singleton variable. Fixes #1959
    • Updated Docker image to include run tests in workers with NUMBER_OF_WORKERS env variable. By @PeterNgTr.