1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-20 05:03:07 +00:00
Commit Graph

3225 Commits

Author SHA1 Message Date
Adam Williamson
171230ab1a Try hiding cursor in middle right of screen on desktops
os-autoinst is set so that if you once manually set the cursor
somewhere, all subsequent calls to `assert_and_click` will return
the cursor to the last manually-set position (if you never set
the cursor anywhere manually, it uses the `mouse_hide` location).
The mouse_hide location is no good for modern desktops as they
use hot corners in various ways, so for the desktop tests, early
in login, we set the mouse to 300/800, which we hope is a kind
of neutral location that doesn't interfere with matches of the
desktop_background needles (which I usually put towards the
right of the screen).

Unfortunately, KDE can show fairly big previews of active windows
down there, and hovering over one causes that window to be
displayed and all others to be hidden. Which rather breaks the
desktop browser test, when we have the Welcome Center popping up
on boot.

We already moved the mouse set point from 300/200 a few years
back because of a *different* awkward interaction with the browser
test, so we can't go back there. Let's try 1023/384 instead -
that's all the way on the right hand side of the screen, but half
way down, not in either corner. I really hope this doesn't cause
problems for any tests cos I don't know where else to stick the
damn thing if this doesn't work.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-12-04 09:15:17 -08:00
Adam Williamson
b2928ff399 KDE app start/stop test updates for Plasma 6
Several needle updates and a tweak to the text we type to launch
kinfocenter (just "info" now launches something else).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-30 18:05:37 -08:00
Adam Williamson
af73a24f50 Drop dbusviewer from KDE apps start/stop test
khotkeys was removed from Plasma 6, and qdbusviewer was only on
the live image because khotkeys recommended it, so now it's gone.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-30 12:12:09 -08:00
Adam Williamson
683234d7a5 Simplify package set selection in anaconda
tab will both reach the environment selection list and then go
through it, so we don't need to start out with tab and then
switch to down. And since all we need to do is hit one key until
a needle matches, let's use the handy function os-autoinst
provides for doing this...

This should fix it on current Rawhide (where it only takes one
tab, or zero tabs - not sure which - to reach the list).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-29 16:20:13 -08:00
Adam Williamson
4e62eb8ec5 Remove the anaconda_help test
Help support has been removed from anaconda:
https://github.com/rhinstaller/anaconda/pull/5335
so we no longer ought to test it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-29 12:11:00 -08:00
Adam Williamson
d638d8b86e check-needles: add assert_and_dclick to matchfuncs
...since we're using it for something now (the KDE color select
widget).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-29 12:11:00 -08:00
Adam Williamson
838d65f86c solidify_wallpaper: handle KDE no longer having a handy 'black'
Plasma 6's color chooser seems to have dropped the nice "basic
colors", so choosing black got harder. Let's try using the HTML
color input box thingy instead, and typing #000000, the HTML
color code for black.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-29 11:51:17 -08:00
Adam Williamson
0245b36cd4 Update deskset_plain_color for Plasma 6
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-29 11:51:00 -08:00
Adam Williamson
c0e293755b Update various KDE needles for Plasma 6
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-27 11:19:14 -08:00
Adam Williamson
13404c6aaf loupe: don't pass args to download_testdata
You can see what these args are trying to do, but the function
does not currently work that way. I think running it without
args should get what the test wants. If Lukas wants to refine
download_testdata so you can specify the payload and where to
extract it, he can do that, then put this back...

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-27 10:53:31 -08:00
Adam Williamson
1ecbd28f82 desktop_login: get rid of KDE welcome tour
The KDE welcome tour is getting in the way of the desktop login
test. Try getting rid of it after logging in.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-27 09:55:34 -08:00
Adam Williamson
461e211618 Drop use of PXEBOOT, rely on default boot order
Per https://progress.opensuse.org/issues/151258 , PXEBOOT=once
doesn't work right in current os-autoinst. Now I look at it,
PXEBOOT is just pretty ropey in general; on UEFI and aarch64 it
doesn't actually do anything at all, we're actually just relying
on the default boot order there.

Since it doesn't seem like there's a practical way to make
PXEBOOT=once work as intended on all platforms, let's just drop
use of it and make it clear that we rely on the default boot
order: we hope that on first boot we'll get a PXE boot since no
local media are bootable, then on second boot we'll get a local
disk boot.

We set up a new IS_PXE variable to cue the couple of places where
the test logic needs to be different.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-21 16:23:25 -08:00
Adam Williamson
1343e1e7c0 Revert "Set a high RETRY value for desktop_printing"
This reverts commit 73f860ecb9. The
mesa issue has been resolved, so we can drop this now.
2023-11-20 23:03:38 -08:00
Adam Williamson
61b399c807 Update Zezere needles for webUI change
Seems the zezere webUI changed a bit.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-20 09:36:08 -08:00
Adam Williamson
6554980501 Update several KDE needles
The Help needles are slightly different in respin lives for some
reason (I don't care enough to figure out what), and the addon
install button in Firefox changed a bit.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-20 09:33:57 -08:00
Lukas Ruzicka
d50885e584 Create a test for basic Flatpak operations.
This PR tries to respond to issue #294.
On Silverblue, this will try:

* flatpak install
* flatpak remote-add
* flatpak list
* flatpak remotes
* flatpak remove
* flatpak update

and also it tests that a flatpak can be built.
2023-11-13 10:37:52 -08:00
Adam Williamson
73f860ecb9 Set a high RETRY value for desktop_printing
It's super flaky ATM due to some GNOME/mesa bug(?) This will make
life easier till I have time to actually debug the issue.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-13 10:37:03 -08:00
Adam Williamson
849753a047 Fix an error in desktop_printing soft fail path (oops)
thanks, tidy

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-13 08:39:43 -08:00
Adam Williamson
4e46478a46 Tweak update download needle to try and avoid upgrade match
In Fedora 38, now F39 is available, there's a Download button
for upgrade to F39 as well as a Download button for F38 updates.
Unfortunately they're nearly identical, and openQA is matching
on the upgrade one, not the update one. This stretches the match
area off the top of the button to include its different
background, which should make the match unique and I hope also
work for F37 (where the button is a different width, so we can't
easily go off the side). Will tweak if this doesn't work.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-07 07:58:23 -10:00
Adam Williamson
dd946b0960 desktop_printing: adjust to g-t-e dying after print
It seems like in current Rawhide (since about Saturday - possibly
due to new mesa?), g-t-e quite often dies after we print. This
messes up the test because we wind up quitting the terminal
instead of g-t-e. Let's handle it as a soft failure instead,
until we can figure out why g-t-e is dying.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-06 20:36:18 -10:00
Adam Williamson
e60a390db2 some waiting and screenshots to debug desktop_printing fails
desktop_printing is failing a lot in recent Rawhide (and so are
some other tests, but this one is nice and easy to target). Add
some wait_still_screens and save_screenshots to try and see
exactly what's going on when we exit gnome-text-editor before
switching to a VT.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-11-06 09:51:10 -08:00
Adam Williamson
e8fefb526b Update several needles for a Firefox update
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-28 10:34:05 -07:00
Adam Williamson
560c770e5d Update a few more KDE needles for recent icon theme update
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-24 13:57:06 -07:00
Adam Williamson
efcd546fe5 Update the Maps walking route needle
They took out Manchester and put in Liverpool! I would like to
complain IN THE STRONGEST POSSIBLE TERMS

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-24 08:28:42 -07:00
Adam Williamson
4e3a284220 krfb: handle two cancel buttons
In today's Rawhide, two dialogs have to be cancelled on krfb
launch before we see the UI: a remote control permission screen
and a kwallet creation flow.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-24 08:21:51 -07:00
Adam Williamson
65ee1c2220 Update a couple of needles for KDE icon theme changes
We may need more when this hits Rawhide, but this was all the
updates tests caught.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-19 16:26:24 -07:00
Adam Williamson
475ee6b89c loupe: add a wait at start of browse test
We often get a failure where it's stuck at a spinner here, let's
see if waiting to settle the snapshot resume helps.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-17 15:33:53 -07:00
Adam Williamson
69dad7a975 sysmon: click, don't use shortcuts, to switch views
It looks like
https://gitlab.gnome.org/GNOME/gnome-system-monitor/-/issues/262
won't be fixed for a while - the fixes are tied up with the GTK
4 port - so let's just work around it for now by clicking instead
of using keyboard shortcuts.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-17 15:30:31 -07:00
Adam Williamson
f36d04e650 KDE start/stop krfb: dismiss Wallet window if it shows up
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-17 09:15:21 -07:00
Adam Williamson
c697ca171d Adjust to replacement of cheese with snapshot (Camera)
A new app called snapshot (Camera, on the menus) has replaced
cheese in F40 (but not F39). Adjust to that. We can simplify
this when F39 is out.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-15 10:21:17 -07:00
Adam Williamson
1db0e7465a Drop kmag test on F40+
kmag was removed in
https://pagure.io/fedora-comps/c/bb332b310b22a1103347afece6f845087694d85e?branch=main
we can't drop the test entirely yet as it's still in F39. Will
drop this after F39 is released.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-15 09:10:51 -07:00
Adam Williamson
28ca4f5289 Add yet another Loupe rotation needle
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-14 10:55:20 -07:00
Adam Williamson
3747f88fe5 Update a Contacts needle
Again, seems associated with the new flatpaks.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-14 10:54:32 -07:00
Adam Williamson
f32454a93a Update a Clocks button needle
Not quite sure what changed, seems to be associated with the
new F39 flatpaks.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-14 10:53:54 -07:00
Adam Williamson
3871afd5aa Update install_lang needle
The crossbar in the A in FEDORA moved a bit.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-14 10:52:44 -07:00
Adam Williamson
22e174069e gnome-panel: set update notification timestamp early
If we do it after forcing the clock to 18:30, doing it takes so
long we wind up at 18:32, and that kinda sets the rest of the
test out of whack (we have several needles that assume we start
at 18:30 or 18:31 after the snapshot). So let's set the update
timestamp *before* we force the clock. This will mean it's waay
in the future after we force the clock, but that should still
do the job of avoiding notifications showing up, I hope.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-14 10:34:01 -07:00
Adam Williamson
b043e99430 Drop EOG alternate path in Maps export image test
Silverblue now has Loupe, like Workstation, so the paths are the
same.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-14 10:24:24 -07:00
Lukas Ruzicka
b1799eb084 Use the new subroutine on desktop tests. 2023-10-10 17:43:21 -07:00
Lukas Ruzicka
2d726d4ccb Add subroutine to set update notification timestamp. 2023-10-10 17:43:06 -07:00
Adam Williamson
542a08dd10 ostree: bump the bundled flatpak base release to 39
This has been done for Rawhide and Branched, so let's do it in
the script too.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-10-10 08:07:16 -07:00
Lukas Ruzicka
85f4e46e6f Add a new route needle for Maps. 2023-10-02 12:36:40 +02:00
Adam Williamson
93a58c5496 tox: set ignore_errors
This doesn't actually *ignore* errors, it just means we continue
running commands after one errors out instead of immediately
bailing. This avoids problems like "the tests don't run if
check-needles fails, so then the coverage reports fail because
there's no coverage.xml".

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-09-26 16:16:56 -07:00
Adam Williamson
8cb8836d3f Update check-needles for changes to konversation test
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-09-26 16:14:03 -07:00
Adam Williamson
eb6a47f462 Adjust konversation test to run neochat on Rawhide
KDE replaced Konversation (IRC client) with Neochat (Matrix
client) in Rawhide. As the replacement isn't done in F39 we can't
just switch the test out, we have to handle both, so for now,
let's have the "konversation" test run neochat on Rawhide.

We can't really proceed through neochat's first run wizard as
it needs a Matrix account name and password and we don't want
the hassle of handling a secret just for this, so we'll just
quit out once we see it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-09-26 15:53:54 -07:00
Lukas Ruzicka
296b43381a Allow language selection on WebUI installations.
Currently, the installation via WebUI is mostly pushing the Next button
which seems to be ok for the production which is based in the US.

This PR makes openQA to select languages when the  G-I-S runs
before Anaconda. The particular language is selected based on
the LANGUAGE variable.
2023-09-26 00:16:22 +00:00
Lukas Ruzicka
d45f2add79 Add a Vilnius needle to support Maps test. 2023-09-25 17:24:12 +02:00
Adam Williamson
8be45cd89e Update Loupe needles
One is for the change from Activities to a UFO in GNOME 45, the
others are recreations of ones we dropped from the PR, because
it really seems like Loupe is a bit unreliable about the zoom
level when rotating the image. Maybe we should file a bug on
that.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-09-22 17:39:33 -07:00
Adam Williamson
c267d5f857 Update Maps zoomed out needle
Just a slight change in upstream OSM, I think.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-09-22 17:38:44 -07:00
Adam Williamson
6c5f86cbf8 Update a gnome-text-editor needle for an icon change
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-09-22 17:38:00 -07:00
Adam Williamson
63aae8f162 Update a Help viewer needle
The icon for this section changed a bit.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2023-09-22 17:37:26 -07:00