1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-05-02 07:31:33 +00:00

Be consistent about credits, website and legal selectors

Most GNOME apps now have a standardized About screen with links
(not buttons) for credits, website and links. Lukas called these
'selectors', which I like - but inconsistently; as well as
generic gnome_selector_foo needles, we have some app-specific
needles, and some with 'button' in the name.

Let's always call these 'selectors', always use generic needle
names (since the same needles should match for almost all apps),
and have the one remaining case where we have a 'button' (the
credits button in Evince) be the variant case, handled by putting
'button' in the needle name, but using the same tag as other
needles.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2025-03-19 17:39:32 -07:00
parent 066b5a7809
commit f6a843727c
25 changed files with 23 additions and 68 deletions

View File

@ -1,15 +0,0 @@
{
"area": [
{
"width": 54,
"xpos": 355,
"ypos": 581,
"type": "match",
"height": 24
}
],
"properties": [],
"tags": [
"maps_button_credits"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 771 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 356,
"ypos": 580,
"width": 54,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"maps_button_credits"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 307 KiB

View File

@ -1,15 +0,0 @@
{
"area": [
{
"xpos": 355,
"ypos": 582,
"width": 54,
"height": 24,
"type": "match"
}
],
"properties": [],
"tags": [
"maps_button_credits"
]
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 684 KiB

View File

@ -10,6 +10,6 @@
],
"properties": [],
"tags": [
"gnome_button_credits"
"gnome_selector_credits"
]
}
}

View File

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 117 KiB

View File

@ -10,6 +10,6 @@
],
"properties": [],
"tags": [
"gnome_button_credits"
"gnome_selector_credits"
]
}
}

View File

Before

Width:  |  Height:  |  Size: 65 KiB

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -10,6 +10,6 @@
],
"properties": [],
"tags": [
"gnome_button_credits"
"gnome_selector_credits"
]
}

View File

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB

View File

@ -10,6 +10,6 @@
],
"properties": [],
"tags": [
"gnome_button_credits"
"gnome_selector_credits"
]
}
}

View File

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -17,9 +17,9 @@ sub run {
# Check that it is shown.
assert_screen("calc_about_shown");
# Click on the Credits button and check that it shows.
unless (check_screen("gnome_button_credits", 30)) {
unless (check_screen("gnome_selector_credits", 30)) {
send_key("pgdn");
assert_screen("gnome_button_credits", 15);
assert_screen("gnome_selector_credits", 15);
record_soft_failure("https://gitlab.gnome.org/GNOME/gnome-calculator/-/issues/419");
}
click_lastmatch;

View File

@ -14,7 +14,7 @@ sub run {
# Click on About Clocks to see the About info.
assert_and_click("clocks_menu_about");
assert_screen("clocks_about_displayed");
assert_and_click("gnome_button_credits");
assert_and_click("gnome_selector_credits");
assert_screen("clocks_credits_shown");
}

View File

@ -18,7 +18,7 @@ sub run {
assert_screen("contacts_about_shown");
# Click on Credits to move to credits and check we
# have moved.
assert_and_click("gnome_button_credits");
assert_and_click("gnome_selector_credits");
assert_screen("contacts_credits_shown");
}

View File

@ -17,7 +17,7 @@ sub run {
assert_screen("disks_about_shown");
# Click on the Credits button.
assert_and_click("gnome_button_credits");
assert_and_click("gnome_selector_credits");
# Check that Credits are shown.
assert_screen("disks_credits_shown");

View File

@ -19,7 +19,7 @@ sub run {
assert_screen("evince_about_shown");
# Click on Credits button to see the second part of the dialogue.
assert_and_click("gnome_button_credits", button => "left", timeout => 30);
assert_and_click("gnome_selector_credits", button => "left", timeout => 30);
# Check that Credits are accessible and visible, too.
assert_screen("evince_credits_shown");

View File

@ -13,7 +13,7 @@ sub run {
# Check that the correct font is shown.
assert_screen("fonts_about_shown");
# Click on Credits to see them.
assert_and_click("gnome_button_credits");
assert_and_click("gnome_selector_credits");
# Check that Credits are shown
assert_screen("fonts_credits_shown");
@ -21,14 +21,14 @@ sub run {
send_key("esc");
# Click on Legal to see legal info.
assert_and_click("gnome_button_legal");
assert_and_click("gnome_selector_legal");
# Check that Credits are shown
assert_screen("fonts_legal_shown");
# Return to previous screen
send_key("esc");
# Check that a project website can be reached.
assert_and_click("gnome_button_website");
assert_and_click("gnome_selector_website");
# Check that the website has been opened
assert_screen("fonts_website_opened");
}

View File

@ -19,7 +19,7 @@ sub run {
assert_screen "gte_about_shown";
# Click on Credits to move to another screen.
assert_and_click "gnome_button_credits";
assert_and_click "gnome_selector_credits";
wait_still_screen(2);
# Check that Credits were shown.

View File

@ -18,7 +18,7 @@ sub run {
assert_screen("maps_about_shown");
# Check that you can visit application webpages
assert_and_click("maps_link_website");
assert_and_click("gnome_selector_website");
assert_screen("maps_website_opened");
# Close the web browser
@ -32,12 +32,12 @@ sub run {
send_key("alt-f4");
# Check that credits are shown.
assert_and_click("maps_button_credits");
assert_and_click("gnome_selector_credits");
assert_screen("maps_credits_shown");
send_key("esc");
# Check that legal info is shown.
assert_and_click("maps_button_legal");
assert_and_click("gnome_selector_legal");
assert_screen("maps_legal_shown");
send_key("esc");
}

View File

@ -19,7 +19,7 @@ sub run {
assert_screen("nautilus_about_show");
# Click on Credits button to see the second part of the dialogue.
assert_and_click("gnome_button_credits", button => "left", timeout => 30);
assert_and_click("gnome_selector_credits", button => "left", timeout => 30);
# Check that Credits are accessible and visible, too.
assert_screen("nautilus_credits_shown");

View File

@ -12,7 +12,7 @@ sub run {
# Check that About dialogue has started.
assert_screen("sysmon_about_shown");
# Click on the Credits button
assert_and_click("gnome_button_credits");
assert_and_click("gnome_selector_credits");
# Check that Credits are shown
assert_screen("sysmon_credits_shown");
}

View File

@ -14,7 +14,7 @@ sub run {
assert_and_click("weather_menu_about");
assert_screen("weather_about_shown");
# Change to Credits
assert_and_click("gnome_button_credits");
assert_and_click("gnome_selector_credits");
assert_screen("weather_credits_shown");
}