fix: stabilize profile permission picker tests on Windows

Co-authored-by: Codex noreply@openai.com
This commit is contained in:
viyatb-oai
2026-05-07 15:43:50 -07:00
parent ffbf320309
commit d7b2dbac52

View File

@@ -111,6 +111,10 @@ async fn profile_permissions_selection_popup_with_custom_profiles_snapshot() {
#[tokio::test]
async fn profile_permissions_selection_emits_named_profile_event_only() {
let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;
#[cfg(target_os = "windows")]
{
chat.set_windows_sandbox_mode(Some(WindowsSandboxModeToml::Unelevated));
}
chat.config.explicit_permission_profile_mode = true;
chat.config
.permissions
@@ -168,6 +172,10 @@ async fn profile_permissions_selection_emits_active_custom_profile() {
#[tokio::test]
async fn profile_permissions_selection_emits_auto_review_mode_event() {
let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;
#[cfg(target_os = "windows")]
{
chat.set_windows_sandbox_mode(Some(WindowsSandboxModeToml::Unelevated));
}
chat.config.explicit_permission_profile_mode = true;
chat.config
.permissions