Cypress Based Perf Testing Suite for Admin (PoC)#2619
Draft
Cypress Based Perf Testing Suite for Admin (PoC)#2619
Conversation
🧪 Review environmenthttps://vi3m2jzln3htuezxagks5szada0scryb.lambda-url.ca-central-1.on.aws/ |
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.
Summary | Résumé
This pull request introduces a dedicated performance testing suite for the Cypress end-to-end tests, enabling repeatable synthetic performance measurements against staging or PR review environments. It adds new Cypress commands and a performance smoke test, updates documentation, and provides a manual GitHub Actions workflow for running and summarizing performance checks.
Performance Testing Suite:
smoke.perf.cy.js) that measures admin journeys, page visits, and API request timings, and generates JSON artifacts for each run. The test also cleans up created templates to keep the environment tidy.startPerfCapture,measureVisit,trackRequestDuration,flushPerfArtifact) to capture and record detailed performance metrics, including per-page and per-request timings, and to write artifacts via a newwritePerfArtifacttask. [1] [2] [3]Configuration and Workflow:
cypress-performance.yml) that allows manual triggering of performance checks, supports custom parameters (base URL, repeat count, spec), summarizes results, and uploads artifacts for review.Developer Experience and Documentation:
README.mdandpackage.jsonto document the new performance suite, explain usage, and add aperf:stagingscript for local runs. [1] [2]These changes provide a robust framework for measuring and tracking performance regressions in admin journeys, both locally and in CI, without mixing performance data into main smoke test results.