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

codeceptjs

Package Overview
Dependencies
Maintainers
1
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeceptjs - npm Package Versions

13
24

3.6.6

Diff

Changelog

Source

3.6.6

❤️ Thanks all to those who contributed to make this release! ❤️

🛩️ Features

  • feat(locator): add withAttrEndsWith, withAttrStartsWith, withAttrContains (#4334) - by @Maksym-Artemenko
  • feat: soft assert (#4473) - by @kobenguyent
    • Soft assert

Zero-configuration when paired with other helpers like REST, Playwright:

// inside codecept.conf.js
{
  helpers: {
    Playwright: {...},
    SoftExpectHelper: {},
  }
}
// in scenario
I.softExpectEqual('a', 'b')
I.flushSoftAssertions() // Throws an error if any soft assertions have failed. The error message contains all the accumulated failures.
  • feat(cli): print failed hooks (#4476) - by @kobenguyent
    • run command Screenshot 2024-09-02 at 15 25 20

    • run workers command Screenshot 2024-09-02 at 15 24 53

🐛 Bug Fixes

  • fix(AI): minor AI improvements - by @DavertMik
  • fix(AI): add missing await in AI.js (#4486) - by @tomaculum
  • fix(playwright): no async save video page (#4472) - by @kobenguyent
  • fix(rest): httpAgent condition (#4484) - by @kobenguyent
  • fix: DataCloneError error when I.executeScript command is used with run-workers (#4483) - by @code4muktesh
  • fix: no error thrown from rerun script (#4494) - by @lin-brian-l
// fix the validation of httpAgent config. we could now pass ca, instead of key/cert.
{
  helpers: {
    REST: {
      endpoint: 'http://site.com/api',
      prettyPrintJson: true,
      httpAgent: {
         ca: fs.readFileSync(__dirname + '/path/to/ca.pem'),
         rejectUnauthorized: false,
         keepAlive: true
      }
    }
  }
}

📖 Documentation

  • doc(AI): minor AI improvements - by @DavertMik
thanh.nguyen
published 3.6.6-beta.6 •

thanh.nguyen
published 3.6.6-beta.5 •

thanh.nguyen
published 3.6.6-beta.4 •

thanh.nguyen
published 3.6.6-beta.3 •

thanh.nguyen
published 3.6.6-beta.2 •

thanh.nguyen
published 3.6.6-beta.1 •

thanh.nguyen
published 3.6.5 •

Changelog

Source

3.6.5

❤️ Thanks all to those who contributed to make this release! ❤️

🛩️ Features

  • feat(helper): playwright > wait for disabled (#4412) - by @kobenguyent
it('should wait for input text field to be disabled', () =>
      I.amOnPage('/form/wait_disabled').then(() => I.waitForDisabled('#text', 1)))

    it('should wait for input text field to be enabled by xpath', () =>
      I.amOnPage('/form/wait_disabled').then(() => I.waitForDisabled("//*[@name = 'test']", 1)))

    it('should wait for a button to be disabled', () =>
      I.amOnPage('/form/wait_disabled').then(() => I.waitForDisabled('#text', 1)))

Waits for element to become disabled (by default waits for 1sec).
Element can be located by CSS or XPath.

@param {CodeceptJS.LocatorOrString} locator element located by CSS|XPath|strict locator.
@param {number} [sec=1] (optional) time in seconds to wait, 1 by default.
@returns {void} automatically synchronized promise through #recorder

🐛 Bug Fixes

  • fix(AI): AI is not triggered (#4422) - by @kobenguyent
  • fix(plugin): stepByStep > report doesn't sync properly (#4413) - by @kobenguyent
  • fix: Locator > Unsupported pseudo selector 'has' (#4448) - by @anils92

📖 Documentation

  • docs: setup azure open ai using bearer token (#4434) - by @kobenguyent
thanh.nguyen
published 3.6.5-beta.5 •

thanh.nguyen
published 3.6.5-beta.4 •

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