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.
stripes-testing is a toolkit for building integration tests against Stripes UI modules and platforms. This repository contains:
accessibility
: axe helper functionsbigtest
: BigTest helper furnctions, compatible with React >= 17cypress
: end-to-end testsinteractors
: 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.
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
.
- Node.js with an active LTS version
- Yarn JavaScript package manager
See project UITEST at the FOLIO issue tracker.
Other FOLIO Developer documentation is at dev.folio.org