Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

codeceptjs

Package Overview
Dependencies
Maintainers
3
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeceptjs - npm Package Versions

1
24

3.3.0-beta.1

Diff

davert
published 3.2.3 •

Changelog

Source

3.2.3

  • Documentation improvements by @maojunxyz
  • Guard mocha cli reporter from registering step logger multiple times #3180 by @nikocanvacom
  • [Playwright] Fixed "tracing.stop: tracing.stop: ENAMETOOLONG: name too long" by @hatufacci
  • Fixed #2889: return always the same error contract from simplifyTest. See #3168 by @andremoah
davert
published 3.2.2 •

Changelog

Source

3.2.2

  • [Playwright] Reverted removal of retry on context errors. Fixes #3130
  • Timeout improvements by @nikocanvacom:
    • Added priorites to timeouts
    • Added overrideStepLimits to stepTimeout plugin to override steps timeouts set by limitTime.
    • Fixed step timeout not working due to override by NaN by test timeout #3126
  • [Appium] Fixed logging error when manualStart is true. See #3140 by @nikocanvacom
davert
published 3.2.1 •

Changelog

Source

3.2.1

♻️ This release fixes hanging of tests by reducing timeouts for automatic retries on failures.

  • [retryFailedStep plugin] New Defaults: retries steps up to 3 times with factor of 1.5 (previously 5 with factor 2)
  • [Playwright] - disabled retry on failed context actions (not needed anymore)
  • [Puppeteer] - reduced retries on context failures to 3 times.
  • [Playwright] Handling crash event to automatically close crashed pages.
davert
published 3.2.0 •

Changelog

Source

3.2.0

🛩️ 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
davert
published 3.1.3 •

Changelog

Source

3.1.3

🛩️ 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. Thanks to @EgorBodnar

  • 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.
  • [Appium] Fixed definitions for touchPerform, hideDeviceKeyboard, removeApp by @mirao

📖 Documentation:

davert
published 3.1.2 •

Changelog

Source

3.1.2

🛩️ 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.
davert
published 3.1.1 •

Changelog

Source

3.1.1

  • [Appium] Fixed #2759 grabNumberOfVisibleElements, grabAttributeFrom, grabAttributeFromAll to allow id locators.
davert
published 3.1.0 •

Changelog

Source

3.1.0

  • [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
davert
published 3.0.7 •

Changelog

Source

3.0.7

📖 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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc