mirror of
https://github.com/openai/codex.git
synced 2026-11-10 21:00:47 +00:00
Update the safety consent test for the current dialog (#60645)
Pass `can_save: true` when opening the consent dialog and assert that the popup displays “Include logs and session history?”. GitOrigin-RevId: d6035a9a1b3e5114a6e92a6fd31547f02c4980fc
This commit is contained in:
committed by
copyberry
parent
30b42cb802
commit
2c2d99f0e3
@@ -243,8 +243,11 @@ async fn daybreak_refusal_offers_enable_for_the_next_turn() {
|
||||
}
|
||||
))
|
||||
);
|
||||
chat.open_feedback_consent(crate::app_event::FeedbackCategory::SafetyCheck);
|
||||
assert!(render_bottom_popup(&chat, /*width*/ 80).contains("Upload logs?"));
|
||||
chat.open_feedback_consent(
|
||||
crate::app_event::FeedbackCategory::SafetyCheck,
|
||||
/*can_save*/ true,
|
||||
);
|
||||
assert!(render_bottom_popup(&chat, /*width*/ 80).contains("Include logs and session history?"));
|
||||
chat.handle_key_event(KeyCode::Esc.into());
|
||||
assert!(render_bottom_popup(&chat, /*width*/ 80).contains("1. Overview"));
|
||||
chat.handle_key_event(KeyCode::Char('4').into());
|
||||
|
||||
Reference in New Issue
Block a user