1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-01-02 23:53:08 +00:00

Fix the Clocks test to work on Fedora 37.

This commit is contained in:
Lukas Ruzicka 2022-08-15 12:29:20 +02:00
parent e9f5378df5
commit e69ba53f51
9 changed files with 93 additions and 11 deletions

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"clocks_about_displayed"
],
"area": [
{
"xpos": 449,
"ypos": 245,
"width": 121,
"height": 126,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"clocks_alarm_cross_remove"
],
"area": [
{
"xpos": 760,
"ypos": 123,
"width": 20,
"height": 22,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -0,0 +1,15 @@
{
"properties": [],
"tags": [
"clocks_timer_paused"
],
"area": [
{
"xpos": 426,
"ypos": 196,
"width": 172,
"height": 54,
"type": "match"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -16,18 +16,7 @@ sub run {
assert_screen("clocks_about_displayed");
assert_and_click("gnome_button_credits");
assert_screen("clocks_credits_shown");
send_key("esc");
# Use the menu to see the shortcuts
assert_and_click("gnome_burger_menu");
assert_and_click("clocks_menu_shortcuts");
assert_screen("clocks_shortcuts_shown");
send_key("esc");
# Use the menu to see the Help
assert_and_click("gnome_burger_menu");
assert_and_click("clocks_menu_help");
assert_screen("clocks_help_shown");
}
sub test_flags {

View File

@ -0,0 +1,24 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# I as a user want to be able use the menu to enter further functions.
sub run {
my $self = shift;
# Click on the burger menu and display Help.
assert_and_click("gnome_burger_menu");
assert_and_click("clocks_menu_help");
assert_screen("clocks_help_shown");
}
sub test_flags {
# Rollback after test is over.
return {always_rollback => 1};
}
1;
# vim: set sw=4 et:

View File

@ -0,0 +1,24 @@
use base "installedtest";
use strict;
use testapi;
use utils;
# I as a user want to be able use the menu to enter further functions.
sub run {
my $self = shift;
# Use the menu to see the shortcuts
assert_and_click("gnome_burger_menu");
assert_and_click("clocks_menu_shortcuts");
assert_screen("clocks_shortcuts_shown");
}
sub test_flags {
# Rollback after test is over.
return {always_rollback => 1};
}
1;
# vim: set sw=4 et: