Commit 6ab8c6c0 authored by Harald Sitter's avatar Harald Sitter 🚔

update the way usernames are handled, the install test overrides now

this enables us to default to installation scenarios rather than install
scenarios, which I think is where we want to head with this
parent c5d1d6fc
......@@ -26,14 +26,14 @@ BEGIN {
unshift @INC, dirname(__FILE__) . '/../../lib';
}
$testapi::username = 'neon';
$testapi::password = '';
$testapi::username = 'user';
$testapi::password = 'password';
my $dist = testapi::get_var("CASEDIR") . '/lib/distribution_neon.pm';
require $dist;
testapi::set_distribution(distribution_neon->new());
autotest::loadtest "tests/install_ubiquity.pm";
# autotest::loadtest "tests/plasma_folder.pm";
# autotest::loadtest "tests/install_ubiquity.pm";
autotest::loadtest "tests/plasma_folder.pm";
1;
......@@ -21,12 +21,17 @@ use strict;
use testapi;
sub run {
# Divert installation data to live data.
my $user = $testapi::username;
my $password = $testapi::password;
$testapi::username = 'neon';
$testapi::password = '';
# wait for bootloader to appear
assert_screen 'bootloader', 30;
# wait for the desktop to appear
assert_screen 'live-desktop', 180;
wait_idle; # Make sure system has settled down a bit.
# Installer
......@@ -53,14 +58,14 @@ sub run {
assert_and_click "installer-next";
assert_screen "installer-user", 16;
type_string "user";
type_string $user;
# user in user field, name field (needle doesn't include hostname in match)
assert_screen "installer-user-user", 16;
send_key "tab", 1; # username field
send_key "tab", 1; # 1st password field
type_string "password";
type_string $password;
send_key "tab", 1; # 2nd password field
type_string "password";
type_string $password;
# all fields filled (not matching hostname field)
assert_screen "installer-user-complete", 16;
assert_and_click "installer-next";
......@@ -78,6 +83,10 @@ sub run {
# Eventually we should end up in sddm
assert_screen 'sddm', 180;
# Set instalation data.
$testapi::username = $user;
$testapi::password = $password;
}
sub test_flags {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment