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

2.3.5

Diff

Changelog

Source

2.3.5

  • Set "parse-function" dependency to "5.2.11" to avoid further installation errors.
davert
published 2.3.4 •

Changelog

Source

2.3.4

  • Fixed installation error "Cannot find module '@babel/runtime/helpers/interopRequireDefault'". The issue came from parse-function package. Fixed by @pablopaul.
  • [Puppeteer] Fixed switching to iframe without an ID by @johnyb. See #1974
  • Added --profile option to run-workers by @orihomie
  • Added a tag definition to FeatureConfig and ScenarioConfig by @sseliverstov
davert
published 2.3.3 •

Changelog

Source

2.3.3

  • customLocator plugin introduced. Adds a locator strategy for special test attributes on elements.
// when data-test-id is a special test attribute
// enable and configure plugin to replace this
I.click({ css: '[data-test-id=register_button]');
// with this
I.click('$register_button');
  • [Puppeteer][WebDriver] pressKey improvements by @martomo: Changed pressKey method to resolve issues and extend functionality.
    • Did not properly recognize 'Meta' (or 'Command') as modifier key.
    • Right modifier keys did not work in WebDriver using JsonWireProtocol.
    • 'Shift' + 'key' combination would not reflect actual keyboard behavior.
    • Respect sequence with multiple modifier keys passed to pressKey.
    • Added support to automatic change operation modifier key based on operating system.
  • [Puppeteer][WebDriver] Added pressKeyUp and pressKeyDown to press and release modifier keys like Control or Shift. By @martomo.
  • [Puppeteer][WebDriver] Added grabElementBoundingRect by @PeterNgTr.
  • [Puppeteer] Fixed speed degradation introduced in #1306 with accessibility locators support. See #1953.
  • Added Config.addHook to add a function that will update configuration on load.
  • Started @codeceptjs/configure package with a collection of common configuration patterns.
  • [TestCafe] port's management removed (left on TestCafe itself) by @orihomie. Fixes #1934.
  • [REST] Headers are no more declared as singleton variable. Fixes #1959
  • Updated Docker image to include run tests in workers with NUMBER_OF_WORKERS env variable. By @PeterNgTr.
davert
published 2.3.2 •

Changelog

Source

2.3.2

  • [Puppeteer] Fixed Puppeteer 1.20 support by @davertmik
  • Fixed run-workers to run with complex configs. See #1887 by @nitschSB
  • Added --suites option to run-workers to split suites by workers (tests of the same suite goes to teh same worker). Thanks @nitschSB.
  • Added a guide on Email Testing.
  • [retryFailedStepPlugin] Improved to ignore wait* steps and others. Also added option to ignore this plugin per test bases. See updated documentation. By @davertmik
  • Fixed using PageObjects as classes by @Vorobeyko. See #1896
  • [WebDriver] Fixed opening more than one tab. See #1875 by @jplegoff. Fixes #1874
  • Fixed #1891 when I.retry() affected retries of next steps. By @davertmik
davert
published 2.3.1 •

Changelog

Source

2.3.1

  • [MockRequest] Polly helper was renamed to MockRequest.
  • [MockRequest][WebDriver] Mocking requests is now available in WebDriver. Thanks @radhey1851
  • [Puppeteer] Ensure configured user agent and/or window size is applied to all pages. See #1862 by @martomo
  • Improve handling of xpath locators with round brackets by @nitschSB. See #1870
  • Use WebDriver capabilities config in wdio plugin. #1869 by @quekshuy
davert
published 2.3.0 •

Changelog

Source

2.3.0

  • Parallel testing by workers introduced by @VikalpP and @davertmik. Use run-workers command as faster and simpler alternative to run-multiple. Requires NodeJS v12
# run all tests in parallel using 3 workers
npx codeceptjs run-workers 3
  • [GraphQL][GraphQLDataFactory] Helpers for data management over GraphQL APIs added. By @radhey1851.
  • Updated to use Mocha 6. See #1802 by @elukoyanov
  • Added dry-run command to print steps of test scenarios without running them. Fails to execute scenarios with grab* methods or custom code. See #1825 for more details.
npx codeceptjs dry-run
  • [Appium] Optimization when clicking, searching for fields by accessibility id. See #1777 by @gagandeepsingh26
  • [TestCafe] Fixed switchTo by @KadoBOT
  • [WebDriver] Added geolocation actions by @PeterNgTr
    • grabGeoLocation()
    • setGeoLocation()
  • [Polly] Check typeof arguments for mock requests by @VikalpP. Fixes #1815
  • CLI improvements by @jamesgeorge007
    • codeceptjs command prints list of all available commands
    • added codeceptjs -V flag to print version information
    • warns on unknown command
  • Added TypeScript files support to run-multiple by @z4o4z
  • Fixed element position bug in locator builder. See #1829 by @AnotherAnkor
  • Various TypeScript typings updates by @elukoyanov and @Vorobeyko
  • Added event.step.comment event for all comment steps like I.say or gherking steps.
davert
published 2.2.1 •

Changelog

Source

2.2.1

  • [WebDriver] A dedicated guide written.
  • [TestCafe] A dedicated guide written.
  • [Puppeteer] A chapter on mocking written
  • [Puppeteer][Nightmare][TestCafe] Window mode is enabled by default on codeceptjs init.
  • [TestCafe] Actions implemented by @hubidu
    • grabPageScrollPosition
    • scrollPageToTop
    • scrollPageToBottom
    • scrollTo
    • switchTo
  • Intellisense improvements. Renamed tsconfig.json to jsconfig.json on init. Fixed autocompletion for Visual Studio Code.
  • [Polly] Take configuration values from Puppeteer. Fix #1766 by @VikalpP
  • [Polly] Add preconditions to check for puppeteer page availability by @VikalpP. Fixes #1767
  • [WebDriver] Use filename for uploadFile by @VikalpP. See #1797
  • [Puppeteer] Configure speed of input with pressKeyDelay option. By @hubidu
  • Fixed recursive loading of support objects by @davertmik.
  • Fixed support object definitions in steps.d.ts by @johnyb. Fixes #1795
  • Fixed Data().Scenario().injectDependencies() is not a function by @andrerleao
  • Fixed crash when using xScenario & Scenario.skip with tag by @VikalpP. Fixes #1751
  • Dynamic configuration of helpers can be performed with async function. See #1786 by @cviejo
  • Added TS definitions for internal objects by @Vorobeyko
  • BDD improvements:
    • Fix for snippets command with a .feature file that has special characters by @asselin
    • Fix --path option on gherkin:snippets command by @asselin. See #1790
    • Added --feature option to gherkin:snippets to enable creating snippets for a subset of .feature files. See #1803 by @asselin.
  • Fixed: dynamic configs not reset after test. Fixes #1776 by @cviejo.
davert
published 2.2.0 •

Changelog

Source

2.2.0

  • EXPERIMENTAL TestCafe helper introduced. TestCafe allows to run cross-browser tests it its own very fast engine. Supports all browsers including mobile. Thanks to @hubidu for implementation! Please test it and send us feedback.
  • [Puppeteer] Mocking requests enabled by introducing Polly.js helper. Thanks @VikalpP
// use Polly & Puppeteer helpers
I.mockRequest('GET', '/api/users', 200);
I.mockRequest('POST', '/users', { user: { name: 'fake' }});
  • EXPERIMENTAL [Puppeteer] Firefox support introduced by @ngadiyak, see #1740
  • [stepByStepReportPlugin] use md5 hash to generate reports into unique folder. Fix #1744 by @chimurai
  • Interactive pause improvements:
    • print result of grab commands
    • print message for successful assertions
  • run-multiple (parallel execution) improvements:
    • bootstrapAll must be called before creating chunks. #1741 by @Vorobeyko
    • Bugfix: If value in config has falsy value then multiple config does not overwrite original value. #1756 by @LukoyanovE
  • Fixed hooks broken in 2.1.5 by @Vorobeyko
  • Fix references to support objects when using Dependency Injection. Fix by @johnyb. See #1701
  • Fix dynamic config applied for multiple helpers by @VikalpP #1743
davert
published 2.1.5 •

Changelog

Source

2.1.5

  • EXPERIMENTAL Wix Detox support introduced as standalone helper. Provides a faster alternative to Appium for mobile testing.
  • Saving successful commands inside interactive pause into _output/cli-history file. By @hubidu
  • Fixed hanging error handler inside scenario. See #1721 by @haily-lgc.
  • Fixed by @Vorobeyko: tests did not fail when an exception was raised in async bootstrap.
  • [WebDriver] Added window control methods by @emmonspired
    • grabAllWindowHandles returns all window handles
    • grabCurrentWindowHandle returns current window handle
    • switchToWindow switched to window by its handle
  • [Appium] Fixed using host as configuration by @trinhpham
  • Fixed run-multiple command when tests config option is undefined (in Gherkin scenarios). By @gkushang.
  • German translation introduced by @hubidu
davert
published 2.1.4 •

Changelog

Source

2.1.4

  • [WebDriver][Puppeteer][Protractor][Nightmare] A11y locator support introduced by @Holorium. Clickable elements as well as fields can be located by following attributes:
    • aria-label
    • title
    • aria-labelledby
  • [Puppeteer] Added support for React locators.
  • [Puppeteer] Deprecated downloadFile
  • [Puppeteer] Introduced handleDownloads replacing downloadFile
  • [puppeteerCoverage plugin] Fixed path already exists error by @seta-tuha.
  • Fixed 'ERROR: ENAMETOOLONG' creating directory names in run-multiple with long config. By @artvinn
  • [REST] Fixed url autocompletion combining base and relative paths by @LukoyanovE
  • [Nightmare][Protractor] uncheckOption method introduced by @PeterNgTr
  • [autoLogin plugin] Enable to use without await by @tsuemura
  • [Puppeteer] Fixed UnhandledPromiseRejectionWarning: "Execution context was destroyed... by @adrielcodeco
  • [WebDriver] Keep browser window dimensions when starting a new session by @spiroid
  • Replace Ghekrin plceholders with values in files that combine a scenerio outline and table by @medtoure18.
  • Added Documentation to locate elements in React Native apps. By @DimGun.
  • Adding optional path parameter to bdd:snippets command to append snippets to a specific file. By @cthorsen31.
  • Added optional output parameter to def command by @LukoyanovE.
  • [Puppeteer] Added grabDataFromPerformanceTiming by @PeterNgTr.
  • axios updated to 0.19.0 by @SteveShaffer
  • TypeScript defitions updated by @LukoyanovE. Added secret and inject function.
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