From 6647bdd488d2fb4937c4d0d9997e74fec4804c87 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Sun, 22 Nov 2026 01:53:44 +0700 Subject: [PATCH] text: upstream's Find trial reads the contract's find and replace fields --- crates/text/tests/it/find.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/text/tests/it/find.rs b/crates/text/tests/it/find.rs index 49b543f56..ba7db1a77 100644 --- a/crates/text/tests/it/find.rs +++ b/crates/text/tests/it/find.rs @@ -84,8 +84,8 @@ fn a_reopened_find_switches_its_tab_and_keeps_what_the_user_set() { fixture.idle(4); let fields = dialog.borrow().json_fields().expect("the dialog's fields"); assert_eq!(fields["tab"], "find", "the tab switches"); - assert_eq!(fields["query"], "bird", "a given query replaces Find what"); - assert_eq!(fields["with"], "dog", "Replace with stays"); + assert_eq!(fields["find"], "bird", "a given query replaces Find what"); + assert_eq!(fields["replace"], "dog", "Replace with stays"); assert_eq!(fields["regex"], true, "the options stay"); assert_eq!(fields["more"], true, "Search Options stays open"); @@ -93,6 +93,6 @@ fn a_reopened_find_switches_its_tab_and_keeps_what_the_user_set() { dialog.borrow_mut().set_go_to_kinds(vec![GoToKind::named("Bookmark", vec!["Intro".to_owned()], "No bookmarks")]); fixture.idle(10); let fields = dialog.borrow().json_fields().expect("the dialog's fields"); - assert_eq!(fields["query"], "bird", "without a query Find what stays"); + assert_eq!(fields["find"], "bird", "without a query Find what stays"); assert_eq!(fields["goToTarget"], "Intro", "the new kinds show: the target names the new bookmark"); }