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

Changelog History
Page 1

  • v3.1.3 Changes

    ๐Ÿ›ฉ๏ธ Features:

    • BDD Improvement. Added DataTableArgument class to work with table data structures.
    const { DataTableArgument } = require('codeceptjs');
    //...
    Given('I have an employee card', (table) => {
      const dataTableArgument = new DataTableArgument(table);
      const hashes = dataTableArgument.hashes(); 
      // hashes = [{ name: 'Harry', surname: 'Potter', position: 'Seeker' }];
      const rows = dataTableArgument.rows();
      // rows = [['Harry', 'Potter', Seeker]];
      }
    

    โšก๏ธ See updated BDD section for more API options.

    • ๐Ÿ‘Œ Support cjs file extensions for config file: codecept.conf.cjs. See #3052 by @kalvenschraut
    • โšก๏ธ API updates: Added test.file and suite.file properties to test and suite objects to use in helpers and plugins.

    ๐Ÿ›  ๐Ÿ› Bugfixes:

    • ๐Ÿ‘€ [Playwright] Fixed resetting test.artifacts for failing tests. See #3033 by @jancorvus. Fixes #3032
    • ๐Ÿ‘€ [Playwright] Apply basicAuth credentials to all opened browser contexts. See #3036 by @nikocanvacom. Fixes #3035
    • โšก๏ธ [WebDriver] Updated webdriverio default version to ^6.12.1. See #3043 by @sridhareaswaran
    • ๐Ÿ‘€ [Playwright] I.haveRequestHeaders affects all tabs. See #3049 by @jancorvus
    • ๐Ÿ›  BDD: Fixed unhandled empty feature files. Fix #3046 by @abhimanyupandian
    • ๐Ÿ›  Fixed RangeError: Invalid string length in recorder.js when running huge amount of tests.

    ๐Ÿ“š ๐Ÿ“– Documentation:

  • v3.1.2 Changes

    ๐Ÿ›ฉ๏ธ Features:

    • โž• Added coverage plugin to generate code coverage for Playwright & Puppeteer. By @anirudh-modi
    • โž• Added subtitle plugin to generate subtitles for videos recorded with Playwright. By @anirudh-modi
    • ๐Ÿ‘€ Configuration: config.tests to accept array of file patterns. See #2994 by @monsteramba
    exports.config = {
      tests: ['./*_test.js','./sampleTest.js'],
      // ... 
    }
    
    • ๐Ÿ‘€ Notification is shown for test files without Feature(). See #3011 by @PeterNgTr

    ๐Ÿ›  ๐Ÿ› Bugfixes:

    • ๐Ÿ›  [Playwright] Fixed #2986 error is thrown when deleting a missing video. Fix by @hatufacci
    • ๐Ÿ›  Fixed false positive result when invalid function is called in a helper. See #2997 by @abhimanyupandian
    • ๐Ÿ‘€ [Appium] Removed full page mode for saveScreenshot. See #3002 by @nlespiaucq
    • โœ… [Playwright] Fixed #3003 saving trace for a test with a long name. Fix by @hatufacci

    ๐ŸŽฑ Other:

    • ๐Ÿ—„ Deprecated puppeteerCoverage plugin in favor of coverage plugin.
  • v3.1.1 Changes

    • ๐Ÿ›  [Appium] Fixed #2759 grabNumberOfVisibleElements, grabAttributeFrom, grabAttributeFromAll to allow id locators.
  • v3.1.0 Changes

    • โšก๏ธ [Plawyright] Updated to Playwright 1.13
    • [Playwright] Possible breaking change: BrowserContext is initialized before each test and closed after. This behavior matches recommendation from Playwright team to use different contexts for tests.
    • โšก๏ธ [Puppeteer] Updated to Puppeteer 10.2.
    • ๐Ÿ—„ [Protractor] Helper deprecated

    ๐Ÿ›ฉ๏ธ Features:

    • [Playwright] Added recording of video and traces by @davertmik
    • ๐Ÿคก [Playwritght] Mocking requests implemented via route API of Playwright by @davertmik
    • ๐Ÿ‘Œ [Playwright] Added support for React locators in #2912 by @AAAstorga

    ๐Ÿ›  ๐Ÿ› Bugfixes:

    • ๐Ÿ›  [Puppeteer] Fixed #2244 els[0]._clickablePoint is not a function by @karunandrii.
    • ๐Ÿ‘€ [Puppeteer] Fixed fillField to check for invisible elements. See #2916 by @anne-open-xchange
    • [Playwright] Reset of dialog event listener before registration of new one. #2946 by @nikocanvacom
    • ๐Ÿ›  Fixed running Gherkin features with run-multiple using chunks. See #2900 by @andrenoberto
    • ๐Ÿ›  Fixed #2937 broken typings for subfolders on Windows by @jancorvus
    • ๐Ÿ›  Fixed issue where cucumberJsonReporter not working with fakerTransform plugin. See #2942 by @ilangv
    • ๐Ÿ›  Fixed #2952 finished job with status code 0 when playwright cannot connect to remote wss url. By @davertmik
  • v3.0.7 Changes

    ๐Ÿ“š ๐Ÿ“– Documentation fixes:

    • โœ‚ Remove broken link from Nightmare helper. See #2860 by @Arhell
    • ๐Ÿ›  Fixed broken links in playwright.md. See #2848 by @johnhoodjr
    • ๐Ÿ›  Fix mocha-multi config example. See #2881 by @rimesc
    • ๐Ÿ›  Fix small errors in email documentation file. See #2884 by @mkrtchian
    • ๐Ÿ‘Œ Improve documentation for Sharing Data Between Workers section. See #2891 by @ngraf

    ๐Ÿ›ฉ๏ธ Features:

    • ๐Ÿ‘€ [WebDriver] Shadow DOM Support for Webdriver. See #2741 by @gkushang
    • ๐Ÿš€ [Release management] Introduce the versioning automatically, it follows the semantics versioning. See #2883 by @PeterNgTr
    • โž• Adding opts into Scenario.skip that it would be useful for building reports. See #2867 by @AlexKo4
    • โž• Added support for attaching screenshots to cucumberJsonReporter See #2888 by @fijijavis
    • ๐Ÿ‘Œ Supported config file for codeceptjs shell command. See #2895 by @PeterNgTr:
    npx codeceptjs shell -c foo.conf.js
    

    ๐Ÿ› Bug fixes:

    • ๐Ÿ‘€ [GraphQL] Use a helper-specific instance of Axios to avoid contaminating global defaults. See #2868 by @vanvoljg
    • ๐Ÿ‘€ A default system color is used when passing non supported system color when using I.say(). See #2874 by @PeterNgTr
    • ๐Ÿ‘€ [Playwright] Avoid the timout due to calling the click on invisible elements. See #2875 by cbayer97
  • v3.0.6 Changes

    • ๐Ÿ‘€ [Playwright] Added electron as a browser to config. See #2834 by @cbayer97
    • ๐Ÿ‘€ [Playwright] Implemented launchPersistentContext to be able to launch persistent remote browsers. See #2817 by @brunoqueiros. Fixes #2376.
    • ๐Ÿ›  Fixed printing logs and stack traces for run-workers. See #2857 by @haveac1gar. Fixes #2621, #2852
    • ๐Ÿ‘€ Emit custom messages from worker to the main thread. See #2824 by @jccguimaraes
    • ๐Ÿ‘Œ Improved workers processes output. See #2804 by @drfiresign
    • ๐Ÿ‘€ BDD. Added ability to use an array of feature files inside config in gherkin.features. See #2814 by @jbergeronjr
    "features": [
      "./features/*.feature",
      "./features/api_features/*.feature"
    ],
    
    • โž• Added getQueueId to reporter to rerun a specific promise. See #2837 by @jonatask
    • โž• Added fakerTransform plugin to use faker data in Gherkin scenarios. See #2854 by @adrielcodeco
    Scenario Outline: ...
      Given ...
      When ...
      Then ...
    
      Examples:
      | productName          | customer              | email              | anythingMore |
      | {{commerce.product}} | Dr. {{name.findName}} | {{internet.email}} | staticData   |
    
    • ๐Ÿ”ง [REST] Use class instance of axios, not the global instance, to avoid contaminating global configuration. #2846 by @vanvoljg
    • ๐Ÿ‘€ [Appium] Added tunnelIdentifier config option to provide tunnel for SauceLabs. See #2832 by @gurjeetbains
  • v3.0.5 Changes

    ๐Ÿ”‹ Features:

    • ๐Ÿณ Official Docker image for CodeceptJS v3. New Docker image is based on official Playwright image and supports Playwright, Puppeteer, WebDriver engines. Thanks @VikentyShevyrin
    • ๐Ÿ‘ Better support for Typescript codecept.conf.ts configuration files. See #2750 by @elaichenkov
    • ๐Ÿ‘€ Propagate more events for custom parallel script. See #2796 by @jccguimaraes
    • ๐Ÿ“š [mocha-junit-reporter] Now supports attachments, see documentation for details. See #2675 by @Shard
    • ๐Ÿ‘€ CustomLocators interface for TypeScript to extend from LocatorOrString. See #2798 by @danielrentz
    • ๐ŸŒฒ [REST] Mask sensitive data from log messages. js I.sendPatchRequest('/api/users.json', secret({ "email": "[email protected]" })); ๐Ÿ‘€ See #2786 by @PeterNgTr

    ๐Ÿ› Bug fixes:

    • ๐Ÿ›  Fixed reporting of nested steps with PageObjects and BDD scenarios. See #2800 by @davertmik. Fixes #2720 #2682
    • ๐Ÿ›  Fixed issue with codeceptjs shell which was broken since 3.0.0. See #2743 by @stedman
    • ๐Ÿ‘€ [Gherkin] Fixed issue suppressed or hidden errors in tests. See #2745 by @ktryniszewski-mdsol
    • ๐Ÿ‘€ [Playwright] fix grabCssPropertyFromAll serialization by using property names. See #2757 by @elaichenkov
    • ๐Ÿ‘€ [Allure] fix report for multi sessions. See #2771 by @cbayer97
    • ๐Ÿ‘€ [WebDriver] Fix locator object debug log messages in smart wait. See 2748 by @elaichenkov

    ๐Ÿ“š Documentation fixes:

    • ๐Ÿ›  Fixed some broken examples. See #2756 by @danielrentz
    • ๐Ÿ›  Fixed Typescript typings. See #2747, #2758 and #2769 by @elaichenkov
    • โž• Added missing type for xFeature. See #2754 by @PeterNgTr
    • ๐Ÿ›  Fixed code example in Page Object documentation. See #2793 by @mkrtchian

    โšก๏ธ Library updates:

    • โšก๏ธ Updated Axios to 0.21.1. See by @sseide
    • โšก๏ธ Updated @pollyjs/core @pollyjs/adapter-puppeteer. See #2760 by @Anikethana
  • v3.0.4 Changes

    • ๐Ÿš‘ Hotfix Fixed init script by adding cross-spawn package. By @vipulgupta2048
    • ๐Ÿ›  Fixed handling error during initialization of run-multiple. See #2730 by @wagoid
  • v3.0.3 Changes

    • ๐Ÿ‘ Playwright 1.7 support
    • ๐Ÿ‘€ [Playwright] Fixed handling null context in click. See #2667 by @matthewjf
    • ๐Ÿ‘€ [Playwright] Fixed Cannot read property '$$' of null when locating elements. See #2713 by @matthewjf
    • Command npx codeceptjs init improved
      • auto-installing required packages
      • better error messages
      • fixed generating type definitions
    • ๐Ÿ‘€ Data Driven Tests improvements: instead of having one skipped test for data driven scenarios when using xData you get a skipped test for each entry in the data table. See #2698 by @Georgegriff
    • ๐Ÿ‘€ [Puppeteer] Fixed that waitForFunction was not working with number values. See #2703 by @MumblesNZ
    • Enabled autocompletion for custom helpers. #2695 by @PeterNgTr
    • โœ… Emit test.after on workers. Fix #2693 by @jccguimaraes
    • ๐Ÿ‘€ TypeScript: Allow .ts config files. See #2708 by @elukoyanov
    • ๐Ÿ›  Fixed definitions generation errors by @elukoyanov. See #2707 and #2718
    • ๐Ÿ›  Fixed handing error in _after function; for example, browser is closed during test and tests executions is stopped, but error was not logged. See #2715 by @elukoyanov
    • ๐Ÿ‘ท Emit hook.failed in workers. Fix #2723 by @jccguimaraes
    • ๐Ÿ‘€ [wdio plugin] Added seleniumArgs and seleniumInstallArgs config options for plugin. See #2687 by @andrerleao
    • ๐Ÿ”Œ [allure plugin] Added addParameter method in #2717 by @jancorvus. Fixes #2716
    • โž• Added mocha-based --reporter-options and --reporter <name> commands to run-workers command by in #2691 @Ameterezu
    • ๐Ÿ›  Fixed infinite loop for junit reports. See #2691 @Ameterezu
    • โž• Added status, start/end time, and match line for BDD steps. See #2678 by @ktryniszewski-mdsol
    • ๐Ÿ”Œ [stepByStepReport plugin] Fixed "helper.saveScreenshot is not a function". Fix #2688 by @andrerleao
  • v3.0.2 Changes

    • ๐Ÿ‘€ [Playwright] Fix connection close with remote browser. See #2629 by @dipiash
    • ๐Ÿ‘€ [REST] set maxUploadFileSize when performing api calls. See #2611 by @PeterNgTr
    • โš  Duplicate Scenario names (combined with Feature name) are now detected via a warning message. ๐Ÿ‘€ Duplicate test names can cause codeceptjs run-workers to not function. See #2656 by @Georgegriff
    • ๐Ÿ“š Documentation fixes

    ๐Ÿ› Bug Fixes:

    • --suites flag now should function correctly for codeceptjs run-workers. See #2655 by @Georgegriff
    • [autoLogin plugin] Login methods should now function as expected with codeceptjs run-workers. See #2658 by @Georgegriff, resolves #2620