All Versions
131
Latest Version
Avg Release Cycle
17 days
Latest Release
-

Changelog History
Page 11

  • v0.4.16 Changes

    • ๐Ÿ›  Fixed steps output synchronization (regression since 0.4.14).
    • โœ… [WebDriverIO][Protractor][SeleniumWebdriver][Nightmare] added keepCookies option to keep cookies between tests with restart: false.
    • 0๏ธโƒฃ [Protractor] added waitForTimeout config option to set default waiting time for all wait* functions.
    • ๐Ÿ›  Fixed _test hook for helpers by @cjhille.
  • v0.4.15 Changes

    • ๐Ÿ›  Fixed regression in recorder sessions: oldpromise is not defined.
  • v0.4.14 Changes

    • _beforeStep and _afterStep hooks in helpers are synchronized. Allows to perform additional actions between steps.

    Example: fail if JS error occur in custom helper using WebdriverIO:

    _before() {
      this.err = null;
      this.helpers['WebDriverIO'].browser.on('error', (e) => this.err = e);
    }
    
    _afterStep() {
     if (this.err) throw new Error('Browser JS error '+this.err);
    }
    

    Example: fail if JS error occur in custom helper using Nightmare:

    _before() {
      this.err = null;
      this.helpers['Nightmare'].browser.on('page', (type, message, stack) => {
        this.err = `${message} ${stack}`;
      });
    }
    
    _afterStep() {
     if (this.err) throw new Error('Browser JS error '+this.err);
    }
    
    • ๐Ÿ›  Fixed codecept list and codecept def commands.
    • โž• Added I.say method to print arbitrary comments.
    I.say('I am going to publish post');
    I.say('I enter title and body');
    I.say('I expect post is visible on site');
    
    • โœ… [Nightmare] restart option added. restart: false allows to run all tests in a single window, disabled by default. By @nairvijays99
    • ๐Ÿ›  [Nightmare] Fixed resizeWindow command.
    • ๐Ÿ [Protractor][SeleniumWebdriver] added windowSize config option to resize window on start.
    • ๐Ÿ›  Fixed "Scenario.skip causes 'Cannot read property retries of undefined'" by @MasterOfPoppets
    • ๐Ÿ›  Fixed providing absolute paths for tests in config by @lennym
  • v0.4.13 Changes

    • Added retries option Feature and Scenario to rerun fragile tests:
    Feature('Complex JS Stuff', {retries: 3});
    
    Scenario('Not that complex', {retries: 1}, (I) => {
      // test goes here
    });
    
    • โฑ Added timeout option Feature and Scenario to specify timeout.
    Feature('Complex JS Stuff', {timeout: 5000});
    
    Scenario('Not that complex', {timeout: 1000}, (I) => {
      // test goes here
    });
    
    • ๐Ÿ‘€ [WebDriverIO] Added uniqueScreenshotNames option to set unique screenshot names for failed tests. By @APshenkin. See #299
    • [WebDriverIO] clearField method improved to accept name/label locators and throw errors.
    • [Nightmare][SeleniumWebdriver][Protractor] clearField method added.
    • ๐Ÿ›  [Nightmare] Fixed waitForElement, and waitForVisible methods.
    • ๐Ÿ›  [Nightmare] Fixed resizeWindow by @norisk-it
    • โž• Added italian translation.
  • v0.4.12 Changes

    • ๐Ÿ”ง Bootstrap / Teardown improved with Hooks. Various options for setup/teardown provided.
    • โž• Added --override or -o option for runner to dynamically override configs. Valid JSON should be passed:
    codeceptjs run -o '{ "bootstrap": "bootstrap.js"}'
    codeceptjs run -o '{ "helpers": {"WebDriverIO": {"browser": "chrome"}}}'
    
  • v0.4.11 Changes

    • ๐Ÿ›  Fixed regression in 0.4.10
    • โž• Added bootstrap/teardown config options to accept functions as parameters by @pscanf. See updated config reference #319
  • v0.4.10 Changes

    • ๐Ÿ‘ [Protractor] Protrctor 4.0.12+ support.
    • Enabled async bootstrap file by @abachar. Use inside bootstrap.js:
    module.exports = function(done) {
      // async instructions
      // call done() to continue execution
      // otherwise call done('error description')
    }
    
    • ๐Ÿ”„ Changed 'pending' to 'skipped' in reports by @timja-kainos. See #315
  • v0.4.9 Changes

    • ๐Ÿ›  [SeleniumWebdriver][Protractor][WebDriverIO][Nightmare] fixed executeScript, executeAsyncScript to work and return values.
    • [Protractor][SeleniumWebdriver][WebDriverIO] Added waitForInvisible and waitForStalenessOf methods by @Nighthawk14.
    • โž• Added --config option to codeceptjs run to manually specify config file by @cnworks
    • ๐Ÿ›  [Protractor] Simplified behavior of amOutsideAngularApp by using ignoreSynchronization. Fixes #278
    • โœ… Set exit code to 1 when test fails at Before/After hooks. Fixes #279
  • v0.4.8 Changes

    • ๐Ÿšš [Protractor][SeleniumWebdriver][Nightmare] added moveCursorTo method.
    • โœ… [Protractor][SeleniumWebdriver][WebDriverIO] Added manualStart option to start browser manually in the beginning of test. By @cnworks. [PR#250
    • ๐Ÿ›  Fixed codeceptjs init to work with nested directories and file masks.
    • ๐Ÿ›  Fixed codeceptjs gt to generate test with proper file name suffix. By @Zougi.
    • ๐Ÿ›  [Nightmare] Fixed: Error is thrown when clicking on element which can't be locate. By @davetmik
    • ๐Ÿ›  [WebDriverIO] Fixed attachFile for file upload. By @giuband and @davetmik
    • ๐Ÿ‘ [WebDriverIO] Add support for timeouts in config and with defineTimeouts method. By @easternbloc #258 and #267 by @davetmik
    • ๐Ÿ›  Fixed hanging of CodeceptJS when error is thrown by event dispatcher. Fix by @Zougi and @davetmik
  • v0.4.7 Changes

    • ๐Ÿ‘Œ Improved docs for BeforeSuite; fixed its usage with restart: false option by @APshenkin.
    • โž• Added Nightmare to list of available helpers on init.
    • ๐Ÿšš [Nightmare] Removed double resizeWindow implementation.