fix: prevent UAC prompts and browser tabs during local test runs#520
Conversation
- AdminHelper.RelaunchAsAdmin: skip Process.Start when no WPF Application is running (test host context) - AboutViewModel.OpenUrl: skip browser launch when no Application context - DialogService.Confirm: return false when no Application context, preventing MessageBox from appearing during test execution Tests now run fully silent — no UAC dialogs, no browser tabs, no MessageBox popups. All 2281 tests pass with zero user interaction required.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📜 Recent review details🔇 Additional comments (3)
📝 WalkthroughWalkthroughThree WPF-context-dependent methods— ChangesWPF Application Context Guards
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
AdminHelper.RelaunchAsAdmin: early-return when no WPF Application (test host)AboutViewModel.OpenUrl: skip browser launch in test contextDialogService.Confirm: return false when no Application, preventing MessageBoxImpact
All 2281 tests now run fully silent — zero UAC dialogs, zero browser tabs, zero MessageBox popups during
dotnet test.Test plan
Summary by CodeRabbit
Bug Fixes