sway-systemd icon indicating copy to clipboard operation
sway-systemd copied to clipboard

Test scenarios

Open alebastr opened this issue 4 years ago • 1 comments

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 is active
  • systemctl --user show-environment | grep WAYLAND_DISPLAY matches current WAYLAND_DISPLAY
  • systemctl --user show-environment | grep XDG_CURRENT_DESKTOP is sway
  • Launch alacritty and verify that the process is placed under app.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 is inactive
  • 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

alebastr avatar Feb 20 '21 22:02 alebastr

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.

D4N avatar Feb 22 '21 07:02 D4N