mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-23 14:33:08 +00:00
Use 'terminal' instead of 'gnome-terminal' for ptyxis switch
In several places we run 'gnome-terminal' explicitly, but as of today's compose, the default terminal app on GNOME in Rawhide is ptyxis, not gnome-terminal. Running 'terminal' should launch whichever is correct, so let's consistently do that. Also, add an apps_run_terminal needle for ptyxis. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
9a7bcf9573
commit
1fedf29a93
@ -1649,7 +1649,7 @@ sub solidify_wallpaper {
|
|||||||
}
|
}
|
||||||
elsif ($desktop eq "gnome") {
|
elsif ($desktop eq "gnome") {
|
||||||
# Start the terminal to set up backgrounds.
|
# Start the terminal to set up backgrounds.
|
||||||
menu_launch_type "gnome-terminal";
|
menu_launch_type "terminal";
|
||||||
# wait to be sure it's fully open
|
# wait to be sure it's fully open
|
||||||
wait_still_screen(stilltime => 5, similarity_level => 38);
|
wait_still_screen(stilltime => 5, similarity_level => 38);
|
||||||
# When the application opens, run command in it to set the background to black
|
# When the application opens, run command in it to set the background to black
|
||||||
|
22
needles/gnome/apps/apps_run_terminal-20240813.json
Normal file
22
needles/gnome/apps/apps_run_terminal-20240813.json
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"width": 25,
|
||||||
|
"xpos": 280,
|
||||||
|
"type": "match",
|
||||||
|
"ypos": 168,
|
||||||
|
"height": 21
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ypos": 125,
|
||||||
|
"xpos": 192,
|
||||||
|
"width": 25,
|
||||||
|
"type": "match",
|
||||||
|
"height": 20
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"apps_run_terminal"
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/gnome/apps/apps_run_terminal-20240813.png
Normal file
BIN
needles/gnome/apps/apps_run_terminal-20240813.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 654 KiB |
@ -3,7 +3,8 @@ use strict;
|
|||||||
use testapi;
|
use testapi;
|
||||||
use utils;
|
use utils;
|
||||||
|
|
||||||
# This test tests if Terminal starts.
|
# This test tests if Terminal starts (which will be gnome-terminal
|
||||||
|
# in Fedora < 41, ptyxis in Fedora >= 41)
|
||||||
|
|
||||||
sub run {
|
sub run {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
@ -12,7 +13,7 @@ sub run {
|
|||||||
assert_screen "apps_run_terminal";
|
assert_screen "apps_run_terminal";
|
||||||
|
|
||||||
# Register application
|
# Register application
|
||||||
register_application("gnome-terminal");
|
register_application("terminal");
|
||||||
|
|
||||||
# Close the application
|
# Close the application
|
||||||
quit_with_shortcut();
|
quit_with_shortcut();
|
||||||
|
@ -22,7 +22,7 @@ sub run {
|
|||||||
desktop_vt;
|
desktop_vt;
|
||||||
|
|
||||||
# On the console, the fonts might differ than in GUI.
|
# On the console, the fonts might differ than in GUI.
|
||||||
# We will perform the tests in the gnome-terminal.
|
# We will perform the tests in the gnome terminal.
|
||||||
# First, open it!
|
# First, open it!
|
||||||
desktop_switch_layout 'ascii';
|
desktop_switch_layout 'ascii';
|
||||||
wait_still_screen(2);
|
wait_still_screen(2);
|
||||||
|
@ -5,7 +5,7 @@ use utils;
|
|||||||
|
|
||||||
our $desktop = get_var("DESKTOP");
|
our $desktop = get_var("DESKTOP");
|
||||||
our $syspwd = get_var("USER_PASSWORD") || "weakpassword";
|
our $syspwd = get_var("USER_PASSWORD") || "weakpassword";
|
||||||
our $term = "gnome-terminal";
|
our $term = "terminal";
|
||||||
if ($desktop eq "kde") {
|
if ($desktop eq "kde") {
|
||||||
$term = "konsole";
|
$term = "konsole";
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ sub run {
|
|||||||
my $editor = "gnome-text-editor";
|
my $editor = "gnome-text-editor";
|
||||||
my $viewer = "evince";
|
my $viewer = "evince";
|
||||||
my $maximize = "super-up";
|
my $maximize = "super-up";
|
||||||
my $term = "gnome-terminal";
|
my $term = "terminal";
|
||||||
if ($desktop eq "kde") {
|
if ($desktop eq "kde") {
|
||||||
$editor = "kwrite";
|
$editor = "kwrite";
|
||||||
$viewer = "okular";
|
$viewer = "okular";
|
||||||
|
@ -13,10 +13,10 @@ sub run {
|
|||||||
my @core_applications;
|
my @core_applications;
|
||||||
# List of applications, that we want to track for their presence.
|
# List of applications, that we want to track for their presence.
|
||||||
unless ($subvariant eq "Silverblue") {
|
unless ($subvariant eq "Silverblue") {
|
||||||
my @core_applications = ("gnome-software", "firefox", "gnome-terminal", "nautilus", "gnome-text-editor", "gnome-boxes");
|
my @core_applications = ("gnome-software", "firefox", "terminal", "nautilus", "gnome-text-editor", "gnome-boxes");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
my @core_applications = ("gnome-software", "firefox", "gnome-terminal", "nautilus", "gnome-text-editor");
|
my @core_applications = ("gnome-software", "firefox", "terminal", "nautilus", "gnome-text-editor");
|
||||||
}
|
}
|
||||||
|
|
||||||
# Evaluate the results, make the log files and pass or fail the entire
|
# Evaluate the results, make the log files and pass or fail the entire
|
||||||
|
Loading…
Reference in New Issue
Block a user