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:
parent
e9f5378df5
commit
e69ba53f51
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"clocks_about_displayed"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 449,
|
||||||
|
"ypos": 245,
|
||||||
|
"width": 121,
|
||||||
|
"height": 126,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/gnome/apps/clocks/clocks_about_displayed-20220815.png
Normal file
BIN
needles/gnome/apps/clocks/clocks_about_displayed-20220815.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 68 KiB |
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"clocks_alarm_cross_remove"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 760,
|
||||||
|
"ypos": 123,
|
||||||
|
"width": 20,
|
||||||
|
"height": 22,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/gnome/apps/clocks/clocks_alarm_cross_remove-20220815.png
Normal file
BIN
needles/gnome/apps/clocks/clocks_alarm_cross_remove-20220815.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 33 KiB |
15
needles/gnome/apps/clocks/clocks_timer_paused-20220815.json
Normal file
15
needles/gnome/apps/clocks/clocks_timer_paused-20220815.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"properties": [],
|
||||||
|
"tags": [
|
||||||
|
"clocks_timer_paused"
|
||||||
|
],
|
||||||
|
"area": [
|
||||||
|
{
|
||||||
|
"xpos": 426,
|
||||||
|
"ypos": 196,
|
||||||
|
"width": 172,
|
||||||
|
"height": 54,
|
||||||
|
"type": "match"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
BIN
needles/gnome/apps/clocks/clocks_timer_paused-20220815.png
Normal file
BIN
needles/gnome/apps/clocks/clocks_timer_paused-20220815.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
@ -16,18 +16,7 @@ sub run {
|
|||||||
assert_screen("clocks_about_displayed");
|
assert_screen("clocks_about_displayed");
|
||||||
assert_and_click("gnome_button_credits");
|
assert_and_click("gnome_button_credits");
|
||||||
assert_screen("clocks_credits_shown");
|
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 {
|
sub test_flags {
|
||||||
|
24
tests/applications/clocks/help.pm
Normal file
24
tests/applications/clocks/help.pm
Normal 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:
|
24
tests/applications/clocks/shortcuts.pm
Normal file
24
tests/applications/clocks/shortcuts.pm
Normal 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:
|
Loading…
Reference in New Issue
Block a user