CodeceptJS v3.2.0 Release Notes

  • ๐Ÿ›ฉ๏ธ Features:

    โฑ Timeouts implemented

    • global timeouts (via timeout config option).
      • Breaking change: timeout option expects timeout in seconds, not in milliseconds as it was previously.
    • test timeouts (via Scenario and Feature options)
      • Breaking change: Feature().timeout() and Scenario().timeout() calls has no effect and are deprecated
    // set timeout for every test in suite to 10 secs
    Feature('tests with timeout', { timeout: 10 });
    
    // set timeout for this test to 20 secs
    Scenario('a test with timeout', { timeout: 20 }, ({ I }) => {});
    
    • step timeouts (See #3059 by @nikocanvacom)
    // set step timeout to 5 secs
    I.limitTime(5).click('Link');
    
    • stepTimeout plugin introduced to automatically add timeouts for each step (#3059 by @nikocanvacom).

    retryTo plugin introduced to rerun a set of steps on failure:

    // editing in text in iframe
    // if iframe was not loaded - retry 5 times
    await retryTo(() => {
      I.switchTo('#editor frame');
      I.fillField('textarea', 'value');
    }, 5);
    
    • ๐Ÿ”ง [Playwright] added locale configuration
    • โฌ†๏ธ [WebDriver] upgraded to webdriverio v7

    ๐Ÿ›  ๐Ÿ› Bugfixes:

    • ๐Ÿ›  Fixed allure plugin "Unexpected endStep()" error in #3098 by @abhimanyupandian
    • ๐Ÿ‘€ [Puppeteer] always close remote browser on test end. See #3054 by @mattonem
    • ๐Ÿ‘€ stepbyStepReport Plugin: Disabled screenshots after test has failed. See #3119 by @ioannisChalkias