From 6b6cd209563e9b14a91f05114cdbff53cfd86077 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 12 Apr 2024 11:11:58 -0700 Subject: [PATCH] clocks/timer: don't always expect 'start' button Since 46, the 1 minute button is a quickstart, it doesn't just set the timer but starts it. So we can't always expect to have to click the start button. Let's keep it working both ways for now for respin testing, we can drop it once we're sure we're not doing any testing on F39 any more. Signed-off-by: Adam Williamson --- tests/applications/clocks/timer.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/applications/clocks/timer.pm b/tests/applications/clocks/timer.pm index 1a5b792d..921e2a26 100644 --- a/tests/applications/clocks/timer.pm +++ b/tests/applications/clocks/timer.pm @@ -15,7 +15,11 @@ sub run { assert_screen("clocks_timer_page"); assert_and_click("clocks_button_timer_minute"); wait_still_screen(2); - assert_and_click("clocks_button_timer_start"); + # since GNOME 46, that was a 'quickstart', on older GNOME we + # have to hit start; remove this when no more F39 testing + if (check_screen("clocks_button_timer_start", 5)) { + click_lastmatch; + } sleep(10); assert_and_click("clocks_button_timer_pause"); assert_screen("clocks_timer_paused");