šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
DemoInstallSign in
Socket

codeceptjs

Package Overview
Dependencies
Maintainers
0
Versions
262
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codeceptjs - npm Package Versions

1
…
911
…
27

3.5.3

Diff
davert
published 3.5.3 •

Changelog

Source

3.5.3

šŸ›©ļø Features

  • [Playwright] Added commands to check network traffic #3748 - by @ngraf @KobeNguyenT
    • startRecordingTraffic
    • grabRecordedNetworkTraffics
    • blockTraffic
    • mockTraffic
    • flushNetworkTraffics
    • stopRecordingTraffic
    • seeTraffic
    • grabTrafficUrl
    • dontSeeTraffic

Examples:

// recording traffics and verify the traffic
await I.startRecordingTraffic()
I.amOnPage('https://codecept.io/')
await I.seeTraffic({ name: 'traffics', url: 'https://codecept.io/img/companies/BC_LogoScreen_C.jpg' })
// block the traffic
I.blockTraffic('https://reqres.in/api/comments/*')
await I.amOnPage('/form/fetch_call')
await I.startRecordingTraffic()
await I.click('GET COMMENTS')
await I.see('Can not load data!')
// check the traffic with advanced params
I.amOnPage('https://openai.com/blog/chatgpt')
await I.startRecordingTraffic()
await I.seeTraffic({
  name: 'sentry event',
  url: 'https://images.openai.com/blob/cf717bdb-0c8c-428a-b82b-3c3add87a600',
  parameters: {
    width: '1919',
    height: '1138',
  },
})

šŸ› Bugfix

  • [retryStepPlugin] Fix retry step when using global retry #3768 - by @KobeNguyenT

šŸ—‘ Deprecated

  • Nightmare and Protractor helpers have been deprecated
davert
published 3.5.2 •

Changelog

Source

3.5.2

šŸ› Bug Fixes

  • [Playwright] reverted clearField to previous implementation
  • [OpenAI] fixed running helper in pause mode. #3755 by @KobeNguyenT
davert
published 3.5.1 •

Changelog

Source

3.5.1

šŸ›©ļø Features

  • [Puppeteer][WebDriver][TestCafe] Added methods by @KobeNguyenT in #3737
    • blur
    • focus
  • Improved BDD output to print steps without I. commands` by @davertmik #3739
  • Improved codecept init setup for Electron tests by @KobeNguyenT. See #3733

šŸ› Bug Fixes

  • Fixed serializing of custom errors making tests stuck. Fix #3739 by @davertmik.

šŸ“– Documentation

  • Fixed Playwright docs by @Horsty80
  • Fixed ai docs by @ngraf
  • Various fixes by @KobeNguyenT
davert
published 3.5.0 •

Changelog

Source

3.5.0

šŸ›©ļø Features

  • šŸŖ„ AI Powered Test Automation - use OpenAI as a copilot for test automation. #3713 By @davertmik

  • [Playwright][Puppeteer][WebDriver] Highlight the interacting elements in debug mode or with highlightElement option set (#3672) - by @KobeNguyenT

  • [Playwright] Support for APIs in Playwright (#3665) - by Egor Bodnar

    • clearField replaced to use new Playwright API
    • blur added
    • focus added
  • Added support for multiple browsers in run-workers (#3606) by @karanshah-browserstack :

Multiple browsers configured as profiles:

exports.config = {
  helpers: {
    WebDriver: {
      url: 'http://localhost:3000',
    }
  },
  multiple: {
    profile1: {
      browsers: [
        {
          browser: "firefox",
        },
        {
          browser: "chrome",
        }
      ]
    },

And executed via run-workers with all argument

npx codeceptjs run-workers 2 all
  • [Appium] Add Appium v2 support (#3622) - by @KobeNguyenT
  • Improve gpo command to create page objects as modules or as classes (#3625) - by @KobeNguyenT
  • Added emptyOutputFolder config to clean up output before running tests (#3604) - by @KobeNguyenT
  • Add secret() function support to append() and type() (#3615) - by @anils92
  • [Playwright] Add bypassCSP option to helper's config (#3641) - by @KobeNguyenT
  • Print number of tests for each suite in dryRun (#3620) - by @KobeNguyenT

šŸ› Bug Fixes

  • Support --grep in dry-run command (#3673) - by @KobeNguyenT
  • Fix typings improvements in playwright (#3650) - by @KobeNguyenT
  • Fixed global retry #3667 by @KobeNguyenT
  • Fixed creating JavaScript test using "codeceptjs gt" (#3611) - by Jaromir Obr
davert
published 3.4.1 •

Changelog

Source

3.4.1

  • Updated mocha to v 10.2. Fixes #3591
  • Fixes executing a faling Before hook. Resolves #3592
davert
published 3.4.0 •

Changelog

Source

3.4.0

  • Updated to latest mocha and modern Cucumber
  • Allure plugin moved to @codeceptjs/allure-legacy package. This happened because allure-commons package v1 was not updated and caused vulnarabilities. Fixes #3422. We don't plan to maintain allure v2 plugin so it's up to community to take this initiative. Current allure plugin will print a warning message without interfering the run, so it won't accidentally fail your builds.
  • Added ability to retry Before, BeforeSuite, After, AfterSuite hooks by @davertmik:
Feature('flaky Before & BeforeSuite', { retryBefore: 2, retryBeforeSuite: 3 })
retry: [
  {
    // enable this config only for flaky tests
    grep: '@flaky',
    Before: 3 // retry Before 3 times
    Scenario: 3 // retry Scenario 3 times
  },
  {
    // retry less when running slow tests
    grep: '@slow'
    Scenario: 1
    Before: 1
  }, {
    // retry all BeforeSuite 3 times
    BeforeSuite: 3
  }
]
timeout: [
  10, // default timeout is 10secs
  {
    // but increase timeout for slow tests
    grep: '@slow',
    Feature: 50,
  },
]
  • JsDoc: Removed promise from I.say. See #3535 by @danielrentz
  • [Playwright] handleDownloads requires now a filename param. See #3511 by @PeterNgTr
  • [WebDriver] Added support for v8, removed support for webdriverio v5 and lower. See #3578 by @PeterNgTr
davert
published 3.4.0-beta.1 •
davert
published 3.3.8-beta.1 •
davert
published 3.3.7 •

Changelog

Source

3.3.7

šŸ›©ļø Features

  • Promise-based typings for TypeScript definitions in #3465 by @nlespiaucq. If you use TypeScript or use linters check how it may be useful to you.
  • Translation improved to use custom vocabulary.
  • [Playwright] Added methods in #3398 by @mirao
    • restartBrowser - to restart a browser (with different config)
    • _createContextPage - to create a new browser context with a page from a helper
  • Added Cucumber custom types for BDD in #3435 by @Likstern
  • Propose using JSONResponse helper when initializing project for API testing. #3455 by @PeterNgTr
  • When translation enabled, generate tests using localized aliases. By @davertmik
  • [Appium] Added checkIfAppIsInstalled in #3507 by @PeterNgTr

šŸ› Bugfixes

  • Fixed #3462 TypeError: Cannot read properties of undefined (reading 'setStatus') by @dwentland24 in #3438
  • Fixed creating steps file for TypeScript setup #3459 by @PeterNgTr
  • Fixed issue of after all event in run-rerun command after complete execution #3464 by @jain-neeeraj
  • [Playwright][WebDriver][Appium] Do not change waitForTimeout value on validation. See #3478 by @pmajewski24. Fixes #2589
  • [Playwright][WebDriver][Protractor][Puppeteer][TestCafe] Fixes Element "{null: undefined}" was not found and element ([object Object]) still not present messages when using object locators. See #3501 and #3502 by @pmajewski24
  • [Playwright] Improved file names when downloading file in #3449 by @PeterNgTr. Fixes #3412 and #3409
  • Add default value to profile env variable. See #3443 by @dwentland24. Resolves #3339
  • [Playwright] Using system-native path separator when saving artifacts in #3460 by @PeterNgTr
  • [Playwright] Saving videos and traces from multiple sessions in #3505 by @davertmik
  • [Playwright] Fixed amOnPage to navigate to about:blank by @zaxoavoki in #3470 Fixes #2311
  • Various typing improvements by @AWolf81 @PeterNgTr @mirao

šŸ“– Documentation

  • Updated Quickstart with detailed explanation of questions in init
  • Added Translation guide
  • Updated TypeScript guide for promise-based typings
  • Reordered guides list on a website
davert
published 3.3.7-beta.1 •
1
…
911
…
27