From a9daf32c5dea5ec4b9cf4dd79fe87c5cab0cb4f7 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 2 Apr 2025 15:48:48 -0700 Subject: [PATCH] fonts/install.pm: hit tab 60 times for the flatpak ...because every font is shown twice, sigh. See: https://gitlab.com/fedora/sigs/flatpak/fedora-flatpaks/-/issues/48 Signed-off-by: Adam Williamson --- tests/applications/fonts/install.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/applications/fonts/install.pm b/tests/applications/fonts/install.pm index acdfb39e..ef025803 100644 --- a/tests/applications/fonts/install.pm +++ b/tests/applications/fonts/install.pm @@ -9,7 +9,11 @@ use utils; sub run { my $self = shift; # Send the TAB key until the Cantarell font is found. - send_key_until_needlematch("fonts_c059_font", "tab", 30, 1); + # hit tab twice as many times for silverblue, because every + # font is shown twice: + # https://gitlab.com/fedora/sigs/flatpak/fedora-flatpaks/-/issues/48 + my $tabs = get_var("CANNED") ? 60 : 30; + send_key_until_needlematch("fonts_c059_font", "tab", $tabs, 1); click_lastmatch(); # Check that the correct font is shown. assert_screen("fonts_c059_shown");