sway-systemd
sway-systemd copied to clipboard
Test scenarios
Verification of expected functionality with a sway config that does not include other systemctl commands. Something I'd like to put into a Fedora OpenQA test suite for sway if we ever start implementing one.
After the compositor start
-
systemctl --user is-active graphical-session.target
isactive
-
systemctl --user show-environment | grep WAYLAND_DISPLAY
matches currentWAYLAND_DISPLAY
-
systemctl --user show-environment | grep XDG_CURRENT_DESKTOP
issway
- Launch
alacritty
and verify that the process is placed underapp.slice/app-Alacritty.slice/app-Alacritty-$PID.scope
If xdg-desktop-portal-wlr
is installed
- Verify that it is running if the
xdg-desktop-portal
is started - Take a screenshot using portal APIs (using this script for example)
- Try Screen capture demo with
firefox-wayland
Fedora package (idk if it's even possible to automate this in OpenQA).
After logout (using another session to keep systemd --user alive)
-
systemctl --user is-active graphical-session.target
isinactive
-
systemctl --user show-environment | grep WAYLAND_DISPLAY
returns nothing -
systemctl --user show-environment | grep XDG_CURRENT_DESKTOP
returns nothing - maybe check if the services bound to
graphical-session.target
were stopped
This should be all doable with openQA, but we'll have to talk to @Adamwill from QA in which way this should be done. I guess we'll have to add a new test to the Fedora updates group, because there's no sway based Fedora spin atm. I can try to look into this, but I cannot promise an ETA atm unfortunately.