New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

codeceptjs

Package Overview
Dependencies
Maintainers
3
Versions
255
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeceptjs - npm Package Versions

1
26

3.3.1

Diff

Changelog

Source

3.3.1

🛩️ Features:

  • Add option to avoid duplicate gherkin step definitions (#3257) - @raywiis
  • Added step.* for run-workers #3272. Thanks to @abhimanyupandian
  • Fixed loading tests for codecept run using glob patterns. By @jayudey-wf
npx codeceptjs run test-dir/*"
  • [Playwright] Possible breaking change. By default timeout is changed to 5000ms. The value set in 3.3.0 was too low. Please set timeout explicitly to not depend on release values.
  • [Playwright] Added for color scheme option by @PeterNgTr
 helpers: {
  Playwright : {
    url: "http://localhost",
    colorScheme: "dark",
  }
 }

🐛 Bugfixes:

  • [Playwright] Fixed Cannot read property 'video' of undefined
  • Fixed haveRequestHeaders() and amBearerAuthenticated() of REST helper (#3260) - @mirao
  • Fixed: allure attachment fails if screenshot failed #3298 by @ruudvanderweijde
  • Fixed #3105 using autoLogin() plugin with TypeScript. Fix #3290 by @PeterNgTr
  • [Playwright] Added extra params for click and dragAndDrop to type definitions by @mirao

📖 Documentation

  • Improving the typings in many places
  • Improving the return type of helpers for TS users (#3245) - @nlespiaucq
davert
published 3.3.0 •

Changelog

Source

3.3.0

🛩️ Features:

  • API Testing introduced
    • Introduced JSONResponse helper which connects to REST, GraphQL or Playwright helper
    • [REST] Added amBearerAuthenticated method
    • [REST] Added haveRequestHeaders method
    • Added dependency on joi and chai
  • [Playwright] Added timeout option to set timeout for all Playwright actions. If an action fails, Playwright keeps retrying it for a time set by timeout.
  • [Playwright] Possible breaking change. By default timeout is set to 1000ms. Previous default was set by Playwright internally to 30s. This was causing contradiction to CodeceptJS retries, so triggered up to 3 retries for 30s of time. This timeout option was lowered so retryFailedStep plugin would not cause long delays.
  • [Playwright] Updated restart config option to include 3 restart strategies:
    • 'context' or false - restarts browser context but keeps running browser. Recommended by Playwright team to keep tests isolated.
    • 'browser' or true - closes browser and opens it again between tests.
    • 'session' or 'keep' - keeps browser context and session, but cleans up cookies and localStorage between tests. The fastest option when running tests in windowed mode. Works with keepCookies and keepBrowserState options. This behavior was default prior CodeceptJS 3.1
  • [Playwright] Extended methods to provide more options from engine. These methods were updated so additional options can be be passed as the last argument:
// use Playwright click options as 3rd argument
I.click('canvas', '.model', { position: { x: 20, y: 40 } })
// check option also has options
I.checkOption('Agree', '.signup', { position: { x: 5, y: 5 } })
  • eachElement plugin introduced. It allows you to iterate over elements and perform some action on them using direct engines API
await eachElement('click all links in .list', '.list a', (el) => {
  await el.click();
})
  • [Playwright] Added support to playwright-core package if playwright is not installed. See #3190, fixes #2663.
  • [Playwright] Added makeApiRequest action to perform API requests. Requires Playwright >= 1.18
  • Added support to codecept.config.js for name consistency across other JS tools. See motivation at #3195 by @JiLiZART
  • [ApiDataFactory] Added options arg to have method. See #3197 by @JJlokidoki
  • Improved pt-br translations to include keywords: 'Funcionalidade', 'Cenário', 'Antes', 'Depois', 'AntesDaSuite', 'DepoisDaSuite'. See #3206 by @danilolutz
  • [allure plugin] Introduced addStep method to add comments and attachments. See #3104 by @EgorBodnar

🐛 Bugfixes:

  • Fixed #3212: using Regex flags for Cucumber steps. See #3214 by @anils92

📖 Documentation

davert
published 3.3.0-beta.5 •

davert
published 3.3.0-beta.4 •

davert
published 3.3.0-beta.3 •

davert
published 3.3.0-beta.2 •

davert
published 3.3.0-beta.1 •

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.
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