Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.51 KB

README.md

File metadata and controls

40 lines (27 loc) · 1.51 KB

stripes-testing

Copyright (C) 2017-2024 The Open Library Foundation

This software is distributed under the terms of the Apache License, Version 2.0. See the file "LICENSE" for more information.

Introduction

stripes-testing is a toolkit for building integration tests against Stripes UI modules and platforms. This repository contains:

  • accessibility: axe helper functions
  • bigtest: BigTest helper furnctions, compatible with React >= 17
  • cypress: end-to-end tests
  • interactors: interactors provide "hooks" into components as rendered in the DOM, allowing tests written in BigTest, Cypress, etc. to use the interactor's consistent API regardless of how the component implementation changes.

Running

First, install dependencies with npm or yarn.

  • To run all Cypress tests at the CLI, run npx cypress run.
  • To run a specific Cypress test at the CLI, run npx cypress run --spec ./path/to/spec.cy.js
  • To open the Cypress test-runner in a browser, run npx cypress open.

Prerequisites

Additional information

See project UITEST at the FOLIO issue tracker.

Other FOLIO Developer documentation is at dev.folio.org