add necessary needles and fix code for KDE upgrade tests

Differential Revision: https://phab.qadevel.cloud.fedoraproject.org/D837
This commit is contained in:
Jan Sedlák 2016-05-04 09:58:35 +02:00
parent ba90ef631a
commit d4466100d4
5 changed files with 39 additions and 3 deletions

View File

@ -0,0 +1,17 @@
{
"area": [
{
"xpos": 422,
"ypos": 445,
"width": 78,
"height": 17,
"type": "match"
}
],
"properties": [],
"tags": [
"DESKTOP-kde",
"LANGUAGE-english",
"graphical_login_input"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 KiB

View File

@ -0,0 +1,17 @@
{
"properties": [],
"tags": [
"DESKTOP-kde",
"LANGUAGE-english",
"graphical_desktop_clean"
],
"area": [
{
"xpos": 3,
"ypos": 739,
"width": 26,
"height": 26,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 KiB

View File

@ -7,16 +7,18 @@ sub run {
my $self = shift;
my $password = get_var("USER_PASSWORD", "weakpassword");
# wait for GDM to appear
# wait for DM to appear
$self->boot_to_login_screen("graphical_login", 20);
# login as normal user
send_key "ret";
if (get_var("DESKTOP") eq 'gnome') {
send_key "ret";
}
assert_screen "graphical_login_input";
type_string $password;
send_key "ret";
# wait until desktop appears
assert_screen "graphical_desktop_clean", 30;
assert_screen "graphical_desktop_clean", 60;
# check an upgrade actually happened (and we can log into a console)
$self->root_console(tty=>3);
$self->check_release(lc(get_var('VERSION')));