about summary refs log tree commit diff
path: root/nixos/tests/gnome-xorg.nix
AgeCommit message (Collapse)AuthorFilesLines
2024-04-08treewide: rename renamed sddm/displayManager settingsSandro Jäckel1-5/+6
2023-11-21nixosTests.gnome: Small cleanuppiegames1-8/+8
2023-05-12nixos/tests/gnome-xorg.nix: get rid of `with lib`Anderson Torres1-2/+2
2023-04-06nixosTests.gnome: Fix tests for 44Jan Tojnar1-0/+3
1. Launching an app externally (like we do in tests) does not dismiss the GNOME Shell’s Activities view opened on log-in. 2. Activities view grabs input so that user can type to search. 3. Due to a regression in Mutter 44, a window focus is not acquired when Shell grabs input https://gitlab.gnome.org/GNOME/mutter/-/commit/3ac82a58c51a5c8db6b49e89a1232f99c79644cc As a result, trying to determine the WMClass would throw: TypeError: global.display.focus_window is null Let’s dismiss the Activities view with Escape key as a workaround.
2023-04-06nixos/tests/gnome: Do not use autostart and switch to kgxJan Tojnar1-8/+8
Starting terminal with autostart makes it harder to control when it is activated. This reverts commit 7aaf5262258a4c2e7366510d0978050f0ed965c4. Unfortunately, we cannot simply just go back since that would fail as mentioned in the reverted commit. It appears that this is due to the app not being able to find DISPLAY, since switching to a different terminal emulator will complain: (kgx:1612): Gtk-WARNING **: 01:12:49.988: cannot open display: :0.0 Let’s use D-Bus activation rather than executing the program through su. That will hopefully take care of all the necessary environment variables. And since GNOME Terminal does not support D-Bus activation for the app, let’s switch to GNOME Console. It probably makes sense anyway, as it is the default terminal emulator. Also let’s unify the WMClass detection a bit. Though, weirdly, the WMClass differs on Wayland.
2022-03-28treewide: machine -> nodes.machineRobert Hensing1-1/+1
2022-03-27nixosTests.gnome: fix testsJan Tojnar1-0/+1
GNOME Terminal is no longer installed by default, breaking the tests that depend on it. Let’s re-add it for now to unbreak them.
2021-11-21nixos/qemu-vm: default memorySize 384 -> 1024Artturin1-1/+0
the default hasn't been changed since 2009 this can improve our test performances nixos/tests: remove explicit memorySize <1024 1024MiB is now the default
2021-10-09nixosTests.gnome: fixJan Tojnar1-0/+15
GNOME Shell 41 made the Eval command we use for NixOS tests internal so in order to be still able to use it, we need to run the shell in an unsafe mode. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1970 https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1983 Hopefully, the test driver will eventually get better so that we will not need hacks like this forever.
2021-05-08gnome: rename from gnome3Jan Tojnar1-0/+81
Since GNOME version is now 40, it no longer makes sense to use the old attribute name.