From 33d7e8d65eddc93c7a5db60c924d2e82ad707263 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Mon, 23 Nov 2026 02:42:51 -0500 Subject: [PATCH] fw sync: unsaved question long-text trial finds the question as an alert dialog Upstream made the unsaved question Role::ALERT_DIALOG; the port trial looked it up as Role::DIALOG. Only the lookup changes; the check that the text stays inside stands. --- crates/ui-panels/tests/it/dialogs.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-panels/tests/it/dialogs.rs b/crates/ui-panels/tests/it/dialogs.rs index 91f7da6fe..050e025b6 100644 --- a/crates/ui-panels/tests/it/dialogs.rs +++ b/crates/ui-panels/tests/it/dialogs.rs @@ -396,7 +396,8 @@ fn unsaved_question_keeps_long_text_inside_its_dialog() { host.borrow_mut() .open(UnsavedChangesDialog::new(CloseScope::Close, "WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW.pdf")); fixture.idle(6); - let dialog = fixture.by_role(Role::DIALOG).first().expect("the question").rect; + // The question is an alert dialog (upstream's role for the unsaved question). + let dialog = fixture.by_role(Role::ALERT_DIALOG).first().expect("the question").rect; assert!(dialog.left() >= 0.0 && dialog.right() <= 820.0, "the question stays on screen: {dialog:?}"); let runs = fixture.texts(); let message = runs.iter().find(|run| run.text.contains("WWWWWWWW")).expect("the document name is painted");