mirror of
https://github.com/openai/codex.git
synced 2026-05-04 13:21:54 +03:00
Remove js_repl feature (#19410)
This commit is contained in:
committed by
GitHub
parent
cf02e9c052
commit
8a559e7938
@@ -1751,30 +1751,6 @@ async fn experimental_features_toggle_saves_on_exit() {
|
||||
assert_eq!(updates, vec![(expected_feature, true)]);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn experimental_popup_shows_js_repl_node_requirement() {
|
||||
let (mut chat, _rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;
|
||||
|
||||
let js_repl_description = FEATURES
|
||||
.iter()
|
||||
.find(|spec| spec.id == Feature::JsRepl)
|
||||
.and_then(|spec| spec.stage.experimental_menu_description())
|
||||
.expect("expected js_repl experimental description");
|
||||
let node_requirement = js_repl_description
|
||||
.split(". ")
|
||||
.find(|sentence| sentence.starts_with("Requires Node >= v"))
|
||||
.map(|sentence| sentence.trim_end_matches(" installed."))
|
||||
.expect("expected js_repl description to mention the Node requirement");
|
||||
|
||||
chat.open_experimental_popup();
|
||||
|
||||
let popup = render_bottom_popup(&chat, /*width*/ 120);
|
||||
assert!(
|
||||
popup.contains(node_requirement),
|
||||
"expected js_repl feature description to mention the required Node version, got:\n{popup}"
|
||||
);
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn experimental_popup_omits_stable_guardian_approval() {
|
||||
let (mut chat, _rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;
|
||||
|
||||
Reference in New Issue
Block a user