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

codeceptjs

Package Overview
Dependencies
Maintainers
4
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
23

2.3.0

Diff

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.
davert
published 2.1.3 •

Changelog

Source

2.1.3

  • Fixed autoLogin plugin to inject login function
  • Fixed using toString() in DataTablewhen it is defined by @tsuemura
davert
published 2.1.2 •

Changelog

Source

2.1.2

  • Fixed inject to load objects recursively.
  • Fixed TypeScript definitions for locators by @LukoyanovE
  • EXPERIMENTAL [WebDriver] ReactJS locators support with webdriverio v5.8+:
// locating React element by name, prop, state
I.click({ react: 'component-name', props: {}, state: {} });
I.seeElement({ react: 'component-name', props: {}, state: {} });
davert
published 2.1.1 •

Changelog

Source

2.1.1

  • Do not retry within and session calls inside retryFailedStep plugin. Fix by @tsuemura
davert
published 2.1.0 •

Changelog

Source

2.1.0

  • Added global inject() function to require actor and page objects using dependency injection. Recommended to use in page objects, step definition files, support objects:
// old way
const I = actor();
const myPage = require('../page/myPage');

// new way
const { I, myPage } = inject();
  • Added global secret function to fill in sensitive data. By @RohanHart:
I.fillField('password', secret('123456'));
  • wdioPlugin Added a plugin to support webdriverio services including selenium-standalone, sauce, browserstack, etc. Sponsored by @GSasu
  • [Appium] Fixed swipe* methods by @PeterNgTr
  • BDD Gherkin Improvements:
    • Implemented run-multiple for feature files. Sponsored by @GSasu
    • Added --features and --tests options to run-multiple. Sponsored by @GSasu
    • Implemented Before and After hooks in step definitions
  • Fixed running tests by absolute path. By @batalov.
  • Enabled the adding screenshot to failed test for moch-junit-reporter by @PeterNgTr.
  • [Puppeteer] Implemented uncheckOption and fixed behavior of checkOption by @aml2610
  • [WebDriver] Fixed seeTextEquals on empty strings by @PeterNgTr
  • [Puppeteer] Fixed launch with browserWSEndpoint config by @ngadiyak.
  • [Puppeteer] Fixed switching back to main window in multi-session mode by @davertmik.
  • [autoLoginPlugin] Fixed using async functions for auto login by @nitschSB

This release was partly sponsored by @GSasu. Thanks for the support! Do you want to improve this project? [Learn more about sponsorin CodeceptJS

davert
published 2.0.8 •

Changelog

Source

2.0.8

  • [Puppeteer] Added downloadFile action by @PeterNgTr.

Use it with FileSystem helper to test availability of a file:

  const fileName = await I.downloadFile('a.file-link');
  I.amInPath('output');
  I.seeFile(fileName);

Actions amInPath and seeFile are taken from FileSystem helper

  • [Puppeteer] Fixed autoLogin plugin with Puppeteer by @davertmik
  • [WebDriver] seeInField should throw error if element has no value attrubite. By @PeterNgTr
  • [WebDriver] Fixed seeTextEquals passes for any string if element is empty by @PeterNgTr.
  • [WebDriver] Internal refctoring to use el.isDisplayed to match latest webdriverio implementation. Thanks to @LukoyanovE
  • [allure plugin] Add ability enable screenshotDiff plugin by @Vorobeyko
  • [Appium] Fixed locator.stringify call by @LukoyanovE
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