Update Konsole runs needle, maximize Konsole in desktop_terminal

The needle match seems to have changed when bug #1957858 showed
up, but it's actually just a text rendering change in the window
title, it's not exactly caused by the tiny window. So not marking
as a workaround needle.

Maximizing the window makes the test work faster when we hit that
bug, as type_safely needs to be able to see the results of its
typing.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2021-06-02 09:08:02 -07:00
parent 0b55fda6f5
commit 6c52a1c1dd
3 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,16 @@
{
"area": [
{
"ypos": 8,
"type": "match",
"xpos": 234,
"height": 15,
"width": 54
}
],
"properties": [],
"tags": [
"konsole_runs",
"apps_run_terminal"
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 900 KiB

View File

@ -4,10 +4,15 @@ use testapi;
use utils;
sub run {
my $self=shift;
my $self = shift;
my $relnum = get_release_number;
my $desktop = get_var("DESKTOP");
check_desktop;
menu_launch_type('terminal');
assert_screen "apps_run_terminal";
# FIXME: workaround for RHBZ#1957858 - test actually works without
# this, but very slowly as characters don't appear on screen
send_key "super-pgup" if ($relnum > 33 && $desktop eq "kde");
wait_still_screen 5;
# need to be root
my $rootpass = get_var("ROOT_PASSWORD", "weakpassword");