From e3b348429aabd69e7b6b4dcf8e3ca537abfb255f Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 4 Jul 2024 15:01:58 -0700 Subject: [PATCH] calculator: handle short About screen with a soft failure See https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/419 Signed-off-by: Adam Williamson --- tests/applications/calculator/about.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/applications/calculator/about.pm b/tests/applications/calculator/about.pm index a08c7713..95fe6574 100644 --- a/tests/applications/calculator/about.pm +++ b/tests/applications/calculator/about.pm @@ -17,7 +17,12 @@ sub run { # Check that it is shown. assert_screen("calc_about_shown"); # Click on the Credits button and check that it shows. - assert_and_click("gnome_button_credits"); + unless (check_screen("gnome_button_credits", 30)) { + send_key("pgdn"); + assert_screen("gnome_button_credits", 15); + record_soft_failure("https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/419"); + } + click_lastmatch; assert_screen("calc_credits_shown"); }