From 468d426f6ac26d0795a82d5b9e3a4b06279eac86 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 15 Jun 2021 14:16:26 -0700 Subject: [PATCH] Manually add Japanese input source for install_asian_language GNOME dropped the g-i-s new user mode in F34, so on a Japanese install with user created in the installer, you don't get an input source configured out of the box or on first boot. So we'll just have to do it manually after booting, before we test if it works. Signed-off-by: Adam Williamson --- tests/_graphical_input.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/_graphical_input.pm b/tests/_graphical_input.pm index 9070b391..6b2148dc 100644 --- a/tests/_graphical_input.pm +++ b/tests/_graphical_input.pm @@ -4,6 +4,20 @@ use testapi; use utils; sub run { + my $relnum = get_release_number; + if (get_var("LANGUAGE") eq 'japanese' && $relnum > 33) { + # since g-i-s new user mode was dropped and the replacement + # doesn't do input method selection, and anaconda never has, + # we have to set up the input method manually: + # https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3749 + menu_launch_type "keyboard"; + assert_and_click "desktop_add_input_source"; + assert_and_click "desktop_input_source_japanese"; + assert_and_click "desktop_input_source_japanese_kana_kanji"; + send_key "ret"; + wait_still_screen 3; + send_key "alt-f4"; + } # do this from the overview because the desktop uses the stupid # transparent top bar which messes with our needles send_key "alt-f1";