earthdata-search
earthdata-search copied to clipboard
EDSC-4055: Add performance based testing to our code base to assist prevent regression
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
LCP passing test.
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