mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-12-02 20:20:35 -05:00
Merge main into fix/main-ci-freebsd-nightly-profile
This commit is contained in:
commit
b0feb5beff
1 file changed
+5
-2
@@ -59,8 +59,11 @@ fn harness_clip(
|
||||
app
|
||||
}
|
||||
});
|
||||
// Wait for the text layer itself (#1277), not for a fixed second.
|
||||
crate::support::wait_until(&mut h, "the page's text layer", |app| app.views[0].glyph_screen_pos(0, 5).is_some() && !app.render_pending());
|
||||
// Wait for the text layer itself (#1277), not for a fixed second. An encrypted document opens
|
||||
// in the background after `setup` submits its password, so its view may not exist yet.
|
||||
crate::support::wait_until(&mut h, "the page's text layer", |app| {
|
||||
app.views.first().is_some_and(|view| view.glyph_screen_pos(0, 5).is_some()) && !app.render_pending()
|
||||
});
|
||||
let at = h.state().views[0].glyph_screen_pos(0, 5).expect("text layer loaded");
|
||||
h.hover_at(at);
|
||||
h.run_steps(1);
|
||||
|
||||
Reference in new issue
Block a user