diff --git a/lib/susedistribution.pm b/lib/susedistribution.pm index 74f380bccef7..269566953577 100644 --- a/lib/susedistribution.pm +++ b/lib/susedistribution.pm @@ -59,7 +59,7 @@ sub handle_password_prompt { my ($console) = @_; $console //= ''; - return if (get_var("LIVETEST") || get_var('LIVECD')) && get_var('FLAVOR') !~ /d-installer/; + return if (get_var("LIVETEST") || get_var('LIVECD')) && (get_var('VERSION') !~ /agama/); if (is_serial_terminal()) { wait_serial(qr/Password:\s*$/i, timeout => 30); } else { diff --git a/schedule/yam/agama/agama_installation.yaml b/schedule/yam/agama/agama_installation.yaml new file mode 100644 index 000000000000..2d154096c22c --- /dev/null +++ b/schedule/yam/agama/agama_installation.yaml @@ -0,0 +1,7 @@ +--- +name: agama_installation +description: > + Playwright test on agama +schedule: + - installation/bootloader_start + - yam/agama/agama_installation diff --git a/tests/yam/agama/agama_installation.pm b/tests/yam/agama/agama_installation.pm new file mode 100644 index 000000000000..4ea2a8c534c8 --- /dev/null +++ b/tests/yam/agama/agama_installation.pm @@ -0,0 +1,35 @@ +## Copyright 2023 SUSE LLC +# SPDX-License-Identifier: GPL-2.0-or-later + +# Summary: Run interactive installation with Agama, +# run playwright tests directly from the Live ISO. +# Maintainer: QE YaST and Migration (QE Yam) + +use base 'y2_installbase'; +use strict; +use warnings; + +use testapi qw( + assert_screen + assert_script_run + select_console + upload_logs +); +use power_action_utils 'power_action'; +use transactional 'process_reboot'; + +sub run { + assert_screen('agama_product_selection', 120); + $testapi::password = 'linux'; + select_console 'root-console'; + + assert_script_run('RUN_INSTALLATION=1 playwright test --trace on --project chromium --config /usr/share/agama-playwright take_screenshots', timeout => 600); + + upload_logs('./test-results/take_snapshots-The-Installer-installs-the-system-chromium/trace.zip'); + assert_script_run('reboot'); + assert_screen('grub2', 120); + my @tags = ("welcome-to", "login"); + assert_screen(\@tags, 300); +} + +1;