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
andFeature
options)- Breaking change:
Feature().timeout()
andScenario().timeout()
calls has no effect and are deprecated
- Breaking change:
// 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
- global timeouts (via