Skip to content

Cypress Based Perf Testing Suite for Admin (PoC)#2619

Draft
P0NDER0SA wants to merge 14 commits intomainfrom
admin-perf-cypress-tests
Draft

Cypress Based Perf Testing Suite for Admin (PoC)#2619
P0NDER0SA wants to merge 14 commits intomainfrom
admin-perf-cypress-tests

Conversation

@P0NDER0SA
Copy link
Copy Markdown
Contributor

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:

  • Added a new performance smoke test (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.
  • Introduced new custom Cypress commands (startPerfCapture, measureVisit, trackRequestDuration, flushPerfArtifact) to capture and record detailed performance metrics, including per-page and per-request timings, and to write artifacts via a new writePerfArtifact task. [1] [2] [3]

Configuration and Workflow:

  • Added a new GitHub Actions 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.
  • Updated Cypress configuration to support new environment variables and the artifact writing task, and set sensible defaults for performance runs. [1] [2]

Developer Experience and Documentation:

  • Updated README.md and package.json to document the new performance suite, explain usage, and add a perf:staging script 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.


@P0NDER0SA P0NDER0SA changed the title attempt to start a perf test suite for admin using cypress Cypress Based Perf Testing Suite for Admin (PoC) Mar 19, 2026
@github-actions
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant