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

codeceptjs

Package Overview
Dependencies
Maintainers
0
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.6.8

Diff

Changelog

Source

3.6.8

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

🛩️ Features

  • feat(cli): mask sensitive data in logs (#4630) - by @kobenguyent
export const config: CodeceptJS.MainConfig = {
  tests:  '**/*.e2e.test.ts',
  retry: 4,
  output: './output',
  maskSensitiveData: true,
  emptyOutputFolder: true,
...

    I login {"username":"helloworld@test.com","password": "****"}
      I send post request "https://localhost:8000/login", {"username":"helloworld@test.com","password": "****"}
      › [Request] {"baseURL":"https://localhost:8000/login","method":"POST","data":{"username":"helloworld@test.com","password": "****"},"headers":{}}
      › [Response] {"access-token": "****"}
  • feat(REST): DELETE request supports payload (#4493) - by @schaudhary111
I.sendDeleteRequestWithPayload('/api/users/1', { author: 'john' });

🐛 Bug Fixes

  • fix(playwright): Different behavior of see* and waitFor* when used in within (#4557) - by @kobenguyent
  • fix(cli): dry run returns no tests when using a regex grep (#4608) - by @kobenguyent
> codeceptjs dry-run --steps --grep "(?=.*Checkout process)"
  • fix: Replace deprecated faker.name with faker.person (#4581) - by @thomashohn
  • fix(wdio): Remove dependency to devtools (#4563) - by @thomashohn
  • fix(typings): wrong defineParameterType (#4548) - by @kobenguyent
  • fix(typing): Locator.build complains the empty locator (#4543) - by @kobenguyent
  • fix: add hint to I.seeEmailAttachment treats parameter as regular expression (#4629) - by @ngraf
Add hint to "I.seeEmailAttachment" that under the hood parameter is treated as RegExp. 
When you don't know it, it can cause a lot of pain, wondering why your test fails with I.seeEmailAttachment('Attachment(1).pdf') although it looks just fine, but actually I.seeEmailAttachment('Attachment\\(1\\).pdf is required to make the test green, in case the attachment is called "Attachment(1).pdf" with special character in it.
  • fix(playwright): waitForText fails when text contains double quotes (#4528) - by @DavertMik
  • fix(mock-server-helper): move to stand-alone package: https://www.npmjs.com/package/@codeceptjs/mock-server-helper (#4536) - by @kobenguyent
  • fix(appium): issue with async on runOnIos and runOnAndroid (#4525) - by @kobenguyent
  • fix: push ws messages to array (#4513) - by @kobenguyent

📖 Documentation

  • fix(docs): typo in ai.md (#4501) - by @tomaculum
thanh.nguyen
published 3.6.8-beta.1 •

thanh.nguyen
published 4.0.0-beta.3 •

thanh.nguyen
published 3.6.7 •

thanh.nguyen
published 4.0.0-beta.2 •

thanh.nguyen
published 4.0.0-beta.1 •

thanh.nguyen
published 3.6.6 •

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 •

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