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

3473 Commits

Author SHA1 Message Date
Adam Williamson
1f4324b270 abstract desktop terminal launch, refactor user switch, enable for KDE
This started out as just factoring out the repeated pattern for
launching a terminal on the desktop that came in with the i3
tests. But as I worked on desktop_login, which is a major user
of it, I noticed some potential cleanups and improvements in the
user switching stuff, and also realized we can turn that test
back on for KDE now - user switching was re-enabled in KDE a year
ago and is advertised to be reliable.

I don't think the "switch user from a lock screen" test fully
worked before, as we did not verify that we'd really switched
back to an existing session rather than starting a new one. Now
we do. Using the terminal to verify the logged-in user on all
desktops just keeps things simpler than using the kicker menu
on KDE (though if typing proves unreliable on KDE I may switch
this back).

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-09 17:16:13 -07:00
Adam Williamson
b7487e97e9 Fix menu_launch_type for i3
Without this, all we did on i3 was hit alt-d and...do nothing,
we didn't type the app name.

I was confused at how we didn't notice this before, but it looks
like at present menu_launch_type isn't actually used in any
test we run on i3 (a lot of tests that use it to run a terminal
got a branch for i3 which uses alt-enter instead). This is an
obvious landmine, though, and it caused things to look weird
when rebasing #323 (which is how I noticed the bug).

This also refactors the sub to use the same logic for all
desktops, just with a different key for i3, since they really
all work the same. i3 doesn't need as much waiting as the other
desktops, probably, but it doesn't really hurt and keeps the code
simple.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-09 11:40:31 -07:00
Adam Williamson
ec34439004 Tweak desktop_printing launch/maximize a bit to make more robust
We seem to be having quite a few failures lately because the
viewer window in KDE never got maximized. This makes us a bit
more conservative at startup and puts the maximization / sentence
check in a send_key_until_needlematch loop to give it more
chances.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-08 13:27:25 -07:00
Adam Williamson
7955c092d6 Add yet another KDE printing sentence needle
Saw slightly different rendering in at least one run on staging.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-08 09:05:18 -07:00
Adam Williamson
d88c8e4335 Add several more tests to the desktop update test set
There's no obvious reason we're not also running these tests on
updates, so let's do it. We have to skip the advisory and UEFI
post checks for desktop_login as the last step of that test is
shutting down the system.

We leave out desktop_login for now because of
https://gitlab.gnome.org/GNOME/gjs/-/issues/647

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-08 08:51:35 -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
c65071f879 Add ffmpeg 7.0 update as a workaround for F41
It's stable now, and
https://bodhi.fedoraproject.org/updates/FEDORA-2024-8b18ef8dfb
needs it, let's add it as a workaround so we don't have to wait
for a compose.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-05 15:44:52 -07:00
Adam Williamson
52f3897eec Clear existing workarounds, they are all stable now
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-05 15:44:28 -07:00
Adam Williamson
52af1011dc Update a couple of KDE needles for recent changes
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-05 09:23:42 -07:00
Adam Williamson
9d2a6b6652 Update dracut root logged in needle
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-04 23:31:24 -07:00
Adam Williamson
3244d17d67 Update gnome-panel screen locked needle for changed icon
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-04 23:31:02 -07:00
Adam Williamson
24bbce64a3 Update a gnome-keyring needle for a recent change
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-04 23:30:42 -07:00
Adam Williamson
28dfad9743 Update various loupe needles for latest version
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-04 23:30:00 -07:00
Adam Williamson
14b48e7bca Update console-in-toolbox needle for latest toolbox
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-04 23:29:40 -07:00
Adam Williamson
b0e6f2bc0c Adapt to changed KDE upgrade flow
We have to hit a drop-down now before we can tell it to restart
automatically.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-04 23:25:51 -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
70271f1397 toolbox: handle changed uname string in Rawhide
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-04 16:19:46 -07:00
Adam Williamson
91f4a24b20 Also add FEDORA-2024-cb1e9f47a3 as F41 workaround
The new NetworkManager update needs it. Lack of composes is
starting to bite us more, need to get one through.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-03 12:18:30 -07:00
Adam Williamson
31691a317b Add a higher-NVR build of FreeIPA as a workaround for F42
The freeipa package in F41 got bumped to a higher NVR than the
one in F42, which causes FreeIPA upgrades to fail.

See: https://src.fedoraproject.org/rpms/freeipa/pull-request/22

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-03 10:12:01 -07:00
Adam Williamson
0b5aabcc57 Add FEDORA-2024-e331cd53ac as a workaround for F41
Another update depends on it. It's gone stable already, but we
are having issues with composes ATM so it hasn't made a compose.
It's safe to do this as we can be sure the depended-on update
will be in the next stable compose whenever it completes, so we
can't wind up in an inconsistent state.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-10-02 16:26:17 -07:00
Adam Williamson
d109fbdb43 Rename i3_tilling to i3_tiling
This is the correct name.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-26 16:56:55 -07:00
Lukas Ruzicka
092cc5dd05 Move the content from i3 library to the files.
Over the time, we have changed the test scripts so that the code
in the i3.pm library was no more needed. The only leftover was the
user config subroutine that could be moved to the only file that was
using it and we could get rid of the library file.
2024-09-26 16:06:43 -07:00
Lukas Ruzicka
c392480f92 Rebase the PR to fit within the current status quo. 2024-09-26 16:04:59 -07:00
Dan Čermák
4315e5ff6f Add openQA tests for i3 2024-09-26 16:04:59 -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
f94f34d0dd Add yet another KDE systray expand needle variant
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-26 15:17:32 -07:00
Adam Williamson
a650a3b33d Add variant clocks_alarm_hour needle for when it's already active
This is still the case on the flatpak build as it runs behind the
RPM build, and would still be the case if we run the test on an
F40 respin for e.g.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-26 15:16:47 -07:00
sumantro93
7657b8bb16 Rename Dockerfile to Containerfile 2024-09-26 14:22:01 +02:00
Adam Williamson
a7dbff27fa Various GNOME 47 needle updates (and one KDE 6.2 one)
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-25 17:57:14 -07: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
47302e9451 Update needles and tweak test logic for new anaconda-webui
New anaconda-webui changes the disk selection flow a bit, this
adapts to it. We can drop the conditional and make it a straight
assert-and-click once the new webui is stable for F41 and F42.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-25 16:50:10 -07:00
Adam Williamson
bb1f6e6ba0 Update KDE systray notifications needle, rename an older one
The older one here does not have Notifications "selected", so
the filename shouldn't say it does.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-19 15:26:59 -07:00
Adam Williamson
e99bf18c4f Add yet another KDE menu button needle variant
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-19 15:22:05 -07:00
Adam Williamson
635ff8941e maps: update wellington needle
Upstream fixed an issue with highway signs being upside down.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-19 15:20:44 -07:00
Adam Williamson
75534a30df desktop_browser: give browser longer to start, but soft fail
This is often failing on KDE on Rawhide ATM, apparently because
of a performance regression with software rendering. So let's
wait longer for the browser, but soft fail if it takes longer
than 45 seconds.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-17 14:49:27 -07:00
Adam Williamson
381a79f06f Fix KDE update test with KDE 6.2
The behavior after we click 'Restart to Install Updates Now'
button has changed in KDE 6.2. The default choice is no longer
'Install Updates and Restart' (even though that's what the button
says), and there is no timer. So if we don't click anything, the
confirm overlay just stays open forever.

This makes us click on the appropriate confirmation button if we
see it. We can also use this to make the test run a bit faster on
other releases, I guess.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-16 12:16:26 -07:00
Adam Williamson
5309466098 Update a KDE package manager needle for KDE 6.2
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-15 23:37:03 -07:00
Alessandro Astone
39e26ed029 kde_doublek_workaround: Allow some time for the menu to close 2024-09-15 21:19:18 +02:00
Adam Williamson
358695e417 doublek_workaround: tweak to work for other letters too
In a couple of cases we type something that *doesn't* start with
a 'k', so we should use that other letter for the workaround.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-15 11:54:35 -07:00
Adam Williamson
4ca41e5b71 tidy _installer_build
Missing ; . Oops.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-15 11:47:41 -07:00
Adam Williamson
22387fddfb Update KDE notification icon needle
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-15 11:45:31 -07:00
Adam Williamson
6146b6eba9 Update map_zoomed needle for OSM changes
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-15 11:45:16 -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
21222f6a03 Update multiple GNOME needles for a font rendering change
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-09 16:39:49 -07:00
Adam Williamson
1c4a93eeaa Update KDE akonadi notification needle for some appearance change
The old needle was still matching but on the wrong X button,
so we dismissed the wrong notification and tests failed. This
seems to solve it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-09 16:37:08 -07:00
Adam Williamson
a9412b14ae Add a needle required for ELN update tests
disk selection with ELN's font.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-06 00:01:52 -07:00
Adam Williamson
e49b5f9645 Initial ELN update test support (installer build)
This should make the installer image build test work for ELN,
so we can try doing some update tests on ELN.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-05 14:57:59 -07:00
Adam Williamson
201fddcb72 Be case-flexible in ELN version checks
There's some ambiguity about the case of the ELN version string.
Currently it's "ELN", it's going to be "eln" soon. Let's just
always use case-insensitive comparisons.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-09-04 13:17:00 -07:00
Adam Williamson
9130518862 Update French passphrase needle for translation change
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-08-30 16:11:37 -07:00
Adam Williamson
0c32f1634d Update a Cockpit needle for a Firefox change
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2024-08-30 16:10:15 -07:00