earthdata-search icon indicating copy to clipboard operation
earthdata-search copied to clipboard

EDSC-4055: Add performance based testing to our code base to assist prevent regression

Open Bccorb opened this issue 8 months ago • 1 comments

Overview

What is the feature?

Adding some basic metrics for tracking in Playwright tests. LCP tracking and Time to Last Byte of the Search pages load time.

What is the Solution?

Added two playwright tests to capture the LCP and the response end time of the search page loading. This correlates to the time it takes to receive all javascript code.

What areas of the application does this impact?

No impact to the actual application.

Testing

Reproduction steps

Running the playwright tests will show allow for inspection of the metrics.

Attachments

Search page metrics Screenshot 2024-06-03 at 10 23 39 AM

LCP passing test. Screenshot 2024-06-03 at 10 24 19 AM

Checklist

  • [x] I have added automated tests that prove my fix is effective or that my feature works
  • [x] New and existing unit tests pass locally with my changes
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings

Bccorb avatar Jun 03 '24 14:06 Bccorb