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

1
24

3.6.5-beta.3

Diff

thanh.nguyen
published 3.6.5-beta.2 •

thanh.nguyen
published 3.6.5-beta.1 •

thanh.nguyen
published 3.6.4 •

Changelog

Source

3.6.4

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

🛩️ Features

  • feat(rest): print curl (#4396) - by @kobenguyent
Config:

...
REST: {
 ...
 printCurl: true,
 ...
}
... 

› [CURL Request] curl --location --request POST https://httpbin.org/post -H ...
  • feat(AI): Generate PageObject, added types, shell improvement (#4319) - by @DavertMik
    • added askForPageObject method to generate PageObjects on the fly
    • improved AI types
    • interactive shell improved to restore history

Screenshot from 2024-06-17 02-47-37

🐛 Bug Fixes

  • fix(heal): wrong priority (#4394) - by @kobenguyent

📖 Documentation

  • AI docs improvements by @DavertMik
thanh.nguyen
published 3.6.4-beta.2 •

thanh.nguyen
published 3.6.4-beta.1 •

thanh.nguyen
published 3.6.3 •

Changelog

Source

3.6.3

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

🛩️ Features

  • feat(plugin): coverage with WebDriver - devtools (#4349) - by @KobeNguyent Screenshot 2024-05-16 at 16 49 20

🐛 Bug Fixes

  • fix(cli): stale process (#4367) - by @Horsty80 @kobenguyent
  • fix(runner): screenshot error in beforeSuite/AfterSuite (#4385) - by @kobenguyent
  • fix(cli): gherkin command init with TypeScript (#4366) - by @andonary
  • fix(webApi): error message of dontSeeCookie (#4357) - by @a-stankevich

📖 Documentation

  • fix(doc): Expect helper is not described correctly (#4370) - by @kobenguyent
  • fix(docs): some strange characters (#4387) - by @kobenguyent
  • fix: Puppeteer helper doc typo (#4369) - by @yoannfleurydev
thanh.nguyen
published 3.6.3-beta.3 •

thanh.nguyen
published 3.6.3-beta.2 •

thanh.nguyen
published 3.6.2 •

Changelog

Source

3.6.2

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

🛩️ Features

  • feat(REST): support httpAgent conf (#4328) - by @KobeNguyent

Support the httpAgent conf to create the TSL connection via REST helper

{
  helpers: {
    REST: {
      endpoint: 'http://site.com/api',
      prettyPrintJson: true,
      httpAgent: {
         key: fs.readFileSync(__dirname + '/path/to/keyfile.key'),
         cert: fs.readFileSync(__dirname + '/path/to/certfile.cert'),
         rejectUnauthorized: false,
         keepAlive: true
      }
    }
  }
}
  • feat(wd): screenshots for sessions (#4322) - by @KobeNguyent

Currently only screenshot of the active session is saved, this PR aims to save the screenshot of every session for easy debugging

Scenario('should save screenshot for sessions @WebDriverIO @Puppeteer @Playwright', async ({ I }) => {
  await I.amOnPage('/form/bug1467');
  await I.saveScreenshot('original.png');
  await I.amOnPage('/');
  await I.saveScreenshot('main_session.png');
  session('john', async () => {
    await I.amOnPage('/form/bug1467');
    event.dispatcher.emit(event.test.failed, this);
  });

  const fileName = clearString('should save screenshot for active session @WebDriverIO @Puppeteer @Playwright');
  const [original, failed] = await I.getSHA256Digests([
    `${output_dir}/original.png`,
    `${output_dir}/john_${fileName}.failed.png`,
  ]);

  // Assert that screenshots of same page in same session are equal
  await I.expectEqual(original, failed);

  // Assert that screenshots of sessions are created
  const [main_original, session_failed] = await I.getSHA256Digests([
    `${output_dir}/main_session.png`,
    `${output_dir}/john_${fileName}.failed.png`,
  ]);
  await I.expectNotEqual(main_original, session_failed);
});

Screenshot 2024-04-29 at 11 07 47

  • feat: locate element with withClassAttr (#4321) - by @KobeNguyent

Find an element with class attribute

// find div with class contains 'form'
locate('div').withClassAttr('text');
  • fix(playwright): set the record video resolution (#4311) - by @KobeNguyent You could now set the recording video resolution
  url: siteUrl,
  windowSize: '300x500',
  show: false,
  restart: true,
  browser: 'chromium',
  trace: true,
  video: true,
  recordVideo: {
    size: {
      width: 400,
      height: 600,
    },
  },

🐛 Bug Fixes

  • fix: several issues of stepByStep report (#4331) - by @KobeNguyent

📖 Documentation

  • fix: wrong format docs (#4330) - by @KobeNguyent
  • fix(docs): wrong method is mentioned (#4320) - by @KobeNguyent
  • fix: ChatGPT docs - by @davert
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