mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-02 06:36:51 -06:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user