Skip to content

folio-org/stripes-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
Sep 11, 2024
Aug 28, 2023
Sep 11, 2023
Jul 13, 2023
Sep 13, 2024
Sep 11, 2023
Sep 11, 2024
Apr 3, 2017
Nov 29, 2023
Sep 11, 2024
Sep 11, 2023
Aug 29, 2024
Jun 7, 2018
Mar 7, 2023
Jul 4, 2024
Jun 7, 2018
Nov 5, 2021
Mar 20, 2017
Jul 11, 2024
Sep 11, 2024
Sep 13, 2023
Sep 11, 2024
Feb 20, 2018
Jul 13, 2023
Sep 3, 2024
Aug 28, 2023
May 22, 2024

Repository files navigation

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