Integration: context menu test expects Paste available with nothing copied (#84 update)

The #84 update enables edit.paste whenever a document is open, since the system clipboard may hold another app's text. next's right_clicking_an_object_selects_it_and_its_menu_arranges_it (from the context-menu work) asserted Paste greyed before any copy; it asserts Paste is available.
This commit is contained in:
aiongg
2026-10-11 19:14:30 +00:00
parent 83893ba3f0
commit 3725b90a2a
+2 -1
View File
@@ -2838,7 +2838,8 @@ mod tests {
// An empty frame's menu: Content, but no Fitting (nothing to fit) and no text frame entries.
assert!(menu_row(&h, "Content").is_some());
assert!(menu_row(&h, "Fitting").is_none() && menu_row(&h, "Text Frame Options…").is_none());
assert!(enabled(&h, "Copy") && !enabled(&h, "Paste"), "nothing copied yet: Paste is greyed");
// Paste is available with nothing copied here: the system clipboard may hold another app's text.
assert!(enabled(&h, "Copy") && enabled(&h, "Paste"));
menu_row(&h, "Arrange").unwrap().click();
h.run_steps(3);
menu_row(&h, "Bring to Front").unwrap().click();