test: Adds missing methods to BrowserStackAPI, deprecate credentials#26230
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
These changes do NOT affect:
The changes are purely internal refactoring of how test reporters communicate with BrowserStack's API for collecting test results, video URLs, profiling data, and network logs. Since no application code or test execution logic is modified, no E2E tests are needed to validate these changes. Performance Test Selection: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #26230 +/- ##
==========================================
- Coverage 81.18% 81.17% -0.01%
==========================================
Files 4429 4429
Lines 115640 115653 +13
Branches 24926 24933 +7
==========================================
+ Hits 93882 93885 +3
- Misses 15226 15232 +6
- Partials 6532 6536 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|



Description
Changelog
CHANGELOG entry:
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/MMQA-1457
Manual testing steps
N/A
Screenshots/Recordings
Before
N/A
After
N/A
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Touches CI/test reporting flows and changes error/credential behavior (now returning
nullinstead of throwing), which could alter how BrowserStack artifacts are fetched and retried; impact is limited to test infrastructure, not production code.Overview
Centralizes BrowserStack interactions into
BrowserStackAPI.ts: the client no longer throws on missing env credentials, API methods returnnullwith warnings, requests use a shared 8s timeout, and failures now throw aBrowserStackAPIErrorthat preserves HTTPstatusand responsebody.Adds new API methods for app profiling (
/appprofiling/v2) and session network logs (/networklogs), exports the new error type, and updates performance reporters (AppProfilingDataHandler,PerformanceTracker,custom-reporter) to stop usingaxios/manual auth checks, fetchbuildIdexplicitly for network logs, and skip/fallback cleanly whenbuildIdor credentials are unavailable. Removes the redundantBrowserStackCredentials.jshelper and associated README mention.Written by Cursor Bugbot for commit cd2dfeb. This will update automatically on new commits. Configure here.