fix(ui): handle headless execution in credits and upgrade dialogs (#21850)

This commit is contained in:
Gaurav
2026-03-10 07:54:15 -07:00
committed by GitHub
parent 94ab449e65
commit 47e4f6b13f
7 changed files with 129 additions and 7 deletions
@@ -44,6 +44,7 @@ vi.mock('../telemetry/index.js', () => ({
}));
vi.mock('../utils/secure-browser-launcher.js', () => ({
openBrowserSecurely: vi.fn(),
shouldLaunchBrowser: vi.fn().mockReturnValue(true),
}));
// Mock debugLogger to prevent console pollution and allow spying