1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-07-17 10:51:36 +00:00
Commit Graph

176 Commits

Author SHA1 Message Date
Lukáš Růžička
b3463c5746 Add tests for Papers to replace Evince tests.
This test suite replaces the Evince test suite and
adds altered scripts and needles to go with the
Papers applications. At the same time, it provides
the same level of functionality and testability
as the original evince test.

Fixes: https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/377
2025-05-16 10:08:34 -07:00
Adam Williamson
d6733652af keyring: type/check 'kwallet', not 'kwalletmanager'
This is how the test did it before the big menu_launch_type
commit, and we use 'kwallet' in another test. Doing this needs an
additional needle or needle tag, which is pointless, let's just
be consistent that it's 'kwallet'.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-04-26 10:47:43 -07:00
Lukáš Růžička
0190f38677 Use the new features of menu_launch_type in code.
We have enhanced the menu_launch_type to allow for
start checking and maximizing applications.
This PR uses the new functions wherever it seems
logical.
If special logic was used for certain cases,
we have not touched these to preserve the
exact behaviour.

The crash workaround for the Fonts flatpak is dropped because it
no longer seems to be needed with the latest version of the
flatpak, and dropping it simplifies this migration.

Fixes: https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/358
2025-04-25 14:40:54 -07:00
Adam Williamson
3d84dae071 navigation: ensure totem is removed to fix upgrade test
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-04-23 16:44:26 -07:00
Adam Williamson
5fdc716c32 navigation/play_video: update for showtime
Video player in Rawhide changed from Totem to Showtime, so we'd
better update for that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-04-22 17:49:53 -07:00
Adam Williamson
718f41f667 De-duplicate kwalletmanager app run needles
We have apps_run_kwallet and apps_run_kwalletmanager. We do not
need both.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-04-11 10:03:15 -07:00
Adam Williamson
2a9eabc3d8 gwenview: move mouse in fullscreen test
There's now a header bar in fullscreen mode which appears until
you move the mouse away from it, and screws up the needle match.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-04-11 09:54:12 -07:00
Adam Williamson
a9daf32c5d fonts/install.pm: hit tab 60 times for the flatpak
...because every font is shown twice, sigh. See:
https://gitlab.com/fedora/sigs/flatpak/fedora-flatpaks/-/issues/48

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-04-02 15:48:48 -07:00
Adam Williamson
3a3806f44b navigation: move a window so we can see one behind it
Seems like GNOME 48 changed window size/positioning a bit, we
have to move the text editor so it will still be visible when
the file manager window is in the front.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-03-20 16:10:22 -07:00
Adam Williamson
b2df642474 navigation: give video grid a bit longer to show up
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-03-20 15:55:40 -07:00
Adam Williamson
9715d39928 navigation: fix details check logic
The current check never fails - if we don't see the details after
30 seconds, we never actually assert them. We may or may not
soft fail, but we'll never fail.

This simplifies the check (there's no need to specifically look
for the 'loading' screen) and makes it actually fail if the
details don't show up in 90 seconds total.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-03-20 15:14:04 -07:00
Adam Williamson
c04484a079 loupe: use gnome_selector_credits
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-03-20 14:05:17 -07:00
Adam Williamson
84b7094911 gnome-text-editor: handle 48 UI changes, update needles
The 'settings' menu is replaced by an 'info' panel, and *most* of
the things from 'settings' moved to 'preferences'. But Document
Type is in the 'info' panel. Just to make things fun. The grid
feature is gone. And of course all the needles needed updating
for the new font. The flatpak build is still 47 and so has the
old UI but the new font, and line spacing in it seems slightly
different, so we need conditional paths and more needles. Yay.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-03-20 12:11:52 -07:00
Adam Williamson
f474c9a9ed Adjust fonts/info.pm to look for Adwaita, not Cantarell
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-03-19 18:56:50 -07:00
Adam Williamson
f6a843727c 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>
2025-03-19 17:39:32 -07:00
Adam Williamson
066b5a7809 Drop pointless gnome_add_button_blue needle
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-03-19 13:53:23 -07:00
Adam Williamson
93ea483979 Reduce pagure.io usage (WIP)
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-03-17 10:39:33 -07:00
Lukáš Růžička
d240c08a70 Create a test suite for KWrite
This PR creates a basic test suite for KWrite, the KDE text editor.
Its steps follow the Gnome text editor test case to provide the same
level of checking.

Fixes: https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/363
2025-03-06 06:59:57 +00:00
Lukáš Růžička
653fb2938f Enhance the menu_launch_type subroutine.
The previous version of menu_launch_type took the name of the
application as an argument and it started the application.
To maximize the application or to check that it has started indeed
we had to do it manually.

Now, the application also takes "maximize => 1" or "checkstart => 1"
to maximize the application or check that it has started as optional
arguments to avoid doing it manually, while it still accepts just
the name of the application and behaves like it did before.

Note that if you decide to use the checkstart argument, you
also need to update the check-needles.py script to whitelist
the application needle tag, see the example test scripts
attached to this PR.

Fixes: https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/329
2025-03-05 19:59:40 +00:00
Lukas Ruzicka
1e6da7019c Unify the needles' naming scheme between Gnome and KDE.
Before this PR, we would have a different naming scheme
of application running needles for Gnome, a.k.a
apps_run_application, while for KDE we had application_runs.

This PR unifies all name under the Gnome scheme,
replaces the tags in the needles and test scripts.

This PR fixes https://pagure.io/fedora-qa/os-autoinst-distri-fedora/issue/330
2025-03-04 11:48:45 -08:00
Adam Williamson
420e19fa6f navigation/switch_application: wait longer for grant_access
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-02-27 15:31:17 -08:00
Adam Williamson
728f785a41 Add kde_doublek_workaround to gwenview aaa_setup
This should reduce the incidence of the test failing due to
double-typing the g in gwenview.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2025-02-19 10:20:23 -08:00
Adam Williamson
1cf138ccb2 gnome-text-editor: allow saved file always to be in either place
It's back in ~/Documents on Rawhide. Let's stop trying to guess
when it's where and just be happy with it being in either place.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-12-17 14:19:57 -08:00
Lukáš Růžička
dab034c39e Extend the Navigation test for QA:Testcase_window_manager. 2024-12-04 18:27:59 -08:00
Lukas Ruzicka
fd386409fe Fix aaa_setup as requested in review. 2024-12-03 23:50:07 +00:00
Lukas Ruzicka
de640bfe3e Create a test for KDE KCalc. 2024-12-03 23:50:07 +00:00
Lukas Ruzicka
13d3686bc2 Create tests for KDE Gwenview 2024-12-03 13:37:51 -08:00
Adam Williamson
a2ecf4bc0c F39 EOL cleanup: drop a bit from clocks/timer.pm
This was only needed on F39 and earlier, as the comment says.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-11-28 13:45:01 -08:00
Lukas Ruzicka
2ce74f3e0b Tidy script. 2024-11-14 13:01:39 +01:00
Lukas Ruzicka
75406ee7f4 On Network tests, authenticate if need be. 2024-11-06 12:15:48 +01:00
Lukas Ruzicka
c4a87f2ae2 Let Maps use a new export flow. 2024-10-17 12:39:20 +02:00
Adam Williamson
2769fb7e58 Add missing ; in navigation aaa_setup.pm
Lukas left this out in his earlier commit.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-16 17:17:37 -07:00
Lukáš Růžička
c0fab57f18 Set timestamp on notification. 2024-10-16 12:07:04 +02:00
Adam Williamson
5c2b2e6c29 Agh, that kde_doublek_workaround needs to be KDE-only
Note to self: do not commit "one simple fix" at midnight then go
to bed

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-11 08:40:04 -07:00
Adam Williamson
87b572e535 Put a kde_doublek_workaround back in keyring_password
We do a menu_launch_type for kwalletmanager, so we'd better keep
a doublek workaround before that :/

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-11 00:18:27 -07:00
Adam Williamson
e9e967c4bf Consistently use desktop_launch_terminal
Also be a bit more consistent about asserting we saw a terminal
and waiting a bit before typing stuff. We can drop the doublek
workarounds from the keyring tests as we no longer use the
kicker to launch the terminal on KDE (we use ctrl-alt-t shortcut).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-09 17:19:00 -07:00
Adam Williamson
6d2974f722 keyring: simplify and make more robust
This avoids some magic waits by asserting screens (which is much
more reliable), and combines KDE and GNOME flows in the
passwordless test by adding some needle tags to the nautilus
needles.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-06 08:02:03 -07:00
Adam Williamson
aebdf08eb5 clocks: tweak how we select the hour text
double-click doesn't seem very reliable.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-04 23:20:07 -07:00
Adam Williamson
82abc61432 Factor DM login process out of _graphical_wait_login
There are several other tests doing the same thing (but not as
safely, in some cases). To improve reliability and reduce
duplication, let's factor this out into utils.pm and reuse it
where appropriate.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-26 22:20:34 +00:00
Adam Williamson
4200e6a73f alarm: double-click hour field before we start typing
See: https://gitlab.gnome.org/GNOME/gnome-clocks/-/issues/370
before 47.0, the hour field was already active for typing when
this window opened, but it no longer is.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-25 17:53:00 -07:00
Adam Williamson
f96f591e46 keyring tests: use check_desktop
These lines were sort of doing the same thing, only much less
safely.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-15 11:43:43 -07:00
Adam Williamson
a7cd9f30db gnome-text-editor: also select right directory for nautilus chooser
The nautilus-provided chooser also does not default to Documents
as the output directory. Sigh.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-08-20 18:10:04 -07:00
Adam Williamson
9f6113d581 More tweaking to GNOME file save - always click the button
Let's not trust hitting enter in just one place but hit the save
button like we do elsewhere (this avoids an awkward issue where
hitting enter doesn't work on the new nautilus version). Also,
let's consolidate the needles under a sensible tag name.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-08-20 16:52:51 -07:00
Adam Williamson
23ebeb2269 Handle hitting the new Nautilus save as dialog in more places
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-08-20 16:33:38 -07:00
Adam Williamson
1b2dbf1c3d Fix Maps export for Nautilus 47
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-08-20 15:56:11 -07:00
Adam Williamson
1cbb7ba2af Fix nautilus hidden_files test with Nautilus 47
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-08-20 15:17:02 -07:00
Adam Williamson
57dc6b691a maps/export: tweak for respin testing
We also need to use the old workflow for f40 respin testing.
Also, put back a wait and some comments that were left out of
the 'old' flow.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-07-15 16:30:55 -07:00
Lukáš Růžička
2356d27268 Use different workflow for Silverblue
Silverblue Rawhide contains an older version of Maps than Workstation
Rawhide. This PR allow to test both of the versions depending on the
subvariant variable. When Silverblue and Workstation will use the
same version, this should be removed.
2024-07-12 11:23:38 +02:00
Lukáš Růžička
1378039230 Fix Gnome Text Editor
The new layout needs to scroll down to reveal some of the elements.
Use send_until_needlematch to navigate in the application and
arrive at those switch buttons to enable the requested functionality.
2024-07-10 16:16:58 +02:00
Lukáš Růžička
6f9288634a Fix the Maps
- add needles
- update export.pm
2024-07-10 15:09:49 +02:00