CodeceptJS v1.1.5 Release Notes

    • [Puppeteer] Rerun steps failed due to "Cannot find context with specified id" Error.
    • โž• Added syntax to retry a single step:
    // retry action once on failure
    I.retry().see('Hello');
    
    // retry action 3 times on failure
    I.retry(3).see('Hello');
    
    // retry action 3 times waiting for 0.1 second before next try
    I.retry({ retries: 3, minTimeout: 100 }).see('Hello');
    
    // retry action 3 times waiting no more than 3 seconds for last retry
    I.retry({ retries: 3, maxTimeout: 3000 }).see('Hello');
    
    // retry 2 times if error with message 'Node not visible' happens
    I.retry({
      retries: 2,
      when: err => err.message === 'Node not visible'
    }).seeElement('#user');
    
    • ๐Ÿ‘€ Scenario().injectDependencies added to dynamically add objects into DI container by @Apshenkin. See Dependency Injection section in PageObjects.
    • ๐Ÿ›  Fixed using async/await functions inside within
    • ๐Ÿ—„ [WebDriverIO][Protractor][Puppeteer][Nightmare] waitUntilExists deprecated in favor of waitForElement
    • ๐Ÿ—„ [WebDriverIO][Protractor] waitForStalenessOf deprecated in favor of waitForDetached
    • [WebDriverIO][Protractor][Puppeteer][Nightmare] waitForDetached added
    • ๐Ÿ‘€ [Nightmare] Added I.seeNumberOfElements() by @pmoncadaisla
    • [Nightmare] Load blank page when starting nightmare so that the .evaluate function will work if _failed/saveScreenshot is triggered by @reubenmiller
    • ๐Ÿ›  Fixed using plain arrays for data driven tests by @reubenmiller
    • 0๏ธโƒฃ [Puppeteer] Use default tab instead of opening a new tab when starting the browser by @reubenmiller
    • [Puppeteer] Added grabNumberOfTabs function by @reubenmiller
    • [Puppeteer] Add ability to set user-agent by @abidhahmed
    • ๐Ÿ’ป [Puppeteer] Add keepCookies and keepBrowserState @abidhahmed
    • [Puppeteer] Clear value attribute instead of innerhtml for TEXTAREA by @reubenmiller
    • ๐Ÿ›ฐ [REST] fixed sending string payload by @michaltrunek
    • ๐Ÿ›  Fixed unhandled rejection in async/await tests by @APshenkin