From 58e96dc16bb31ddf66f36849e785102e2af7fd95 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 25 Aug 2025 15:57:18 -0700 Subject: [PATCH] papers: only hit apply if it's there Signed-off-by: Adam Williamson --- tests/applications/papers/add_annotation.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/applications/papers/add_annotation.pm b/tests/applications/papers/add_annotation.pm index f746595d..9585eb5e 100644 --- a/tests/applications/papers/add_annotation.pm +++ b/tests/applications/papers/add_annotation.pm @@ -39,7 +39,12 @@ sub run { assert_and_click("gnome_button_select"); assert_and_dclick("papers_opacity_hundred"); type_very_safely("70"); - assert_and_click("gnome_button_apply"); + if (check_screen("gnome_button_apply", 10)) { + click_lastmatch; + } + else { + send_key('esc'); + } assert_screen("papers_annotation_placed"); # Different opacity # Remove the annotation.