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

cypress-wikibase-api

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cypress-wikibase-api

Support package for developing cypress tests that use the Wikibase API

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
131
decreased by-25.14%
Maintainers
0
Weekly downloads
 
Created
Source

cypress-wikibase-api

Cypress plugin and utility functions for writing Cypress tests of Wikibase

This module contains Cypress tasks to be used in Cypress browser tests for Wikibase and its extensions.

Usage example

For example, in the Cypress tests in WikibaseLexeme, we use the API to get data about an entity that we created during our testing:

lexemePage.headerId().then( ( lexemeId ) => {
    cy.task( 'MwApi:GetEntityData', { entityId: lexemeId } ).then( ( lexeme ) => {
	expect( lexeme.lemmas[ languageItemsLanguageCode ].value ).to.eq( lemma );
	expect( lexeme.language ).to.eq( languageId );
	expect( lexeme.lexicalCategory ).to.eq( lexicalCategoryId );
    } );
});

Development

When testing changes locally, you can install the checked-out module from the project that you are working on:

npm rm cypress-wikibase-api
npm i -D ~/work/cypress-wikibase-api

Contributing

Please file any bugs or issues with our issue-tracker at phabricator.wikimedia.org.

For instruction of how to create a new release, please see CONTRIBUTING.md

Keywords

FAQs

Package last updated on 21 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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