Skip to content
Snippets Groups Projects

Introduce cypress component testing ICSHWI-9018

Merged John Sparger requested to merge introduce-component-testing-tidy-ICSHWI-9018 into develop

This merge request adds some initial component testing with Cypress. It makes the following changes

  • Installs cypress component testing dependencies
  • Updates the cypress configuration (cypress.json and cypress/plugins/index.js) to run component test
  • Updates jest configuration to ignore cypress component tests
  • Introduces a patch to change the configuration of the "react-error-overlay" in create-react-app to only appear for errors
  • Mocks some parts of the API required for component tests
  • Adds some first tests for APIProvider, UserProvider, TokenRenew, and NotificationProvider (these are not exhaustive)
  • Updates gitlab-ci configuration to run cypress component tests in CI

To run the component tests, use npx cypress open-ct

Edited by John Sparger

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading