chore: setup complete testing infrastructure#239
Open
Opulencechuks wants to merge 1 commit into
Open
Conversation
- configured Jest with 85% coverage thresholds and jest-axe - integrated Playwright for E2E and cross-browser testing - setup Storybook and Chromatic for visual regression testing - added MSW for API mocking in both browser and node environments - setup Lighthouse CI for performance budget assertions - updated GitHub Actions workflow to run the entire test suite - added sample tests for E2E and visual regression
|
@Opulencechuks is attempting to deploy a commit to the paul joseph's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@Opulencechuks Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Contributor
|
Fix frontend ci, it's failing |
Contributor
|
Are you still available to fix the CI? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR closes #205
PR Description: Comprehensive Frontend Testing Infrastructure
Description
This PR introduces a complete, multi-layered testing infrastructure for the frontend to ensure robust code quality, prevent visual and accessibility regressions, and maintain performance standards.
Implementation Details
>85%global coverage threshold and integratedjest-axefor component-level accessibility assertions.axe-corechecks.ThemeTogglehas been provided to demonstrate component isolation and visual diffing.lighthouserc.js) to assert that the application meets high standards for performance, accessibility, SEO, and best practices..github/workflows/ci.ymlpipeline to automatically run all testing layers (Coverage, Playwright, Lighthouse, Chromatic) on pushes and pull requests.How to Test
To verify the new testing infrastructure locally, pull this branch and run the following commands from the
frontend/directory:npx playwright install # Install required browsers if not already installed npm run test:e2ehttp://localhost:6006) to view the isolated components.Testing Requirements Met
jest-axe& Playwright).Important Note for Reviewers/Admins:
To allow Chromatic to process visual regressions in the CI pipeline, please ensure that the
CHROMATIC_PROJECT_TOKENis added to the repository's GitHub Secrets.