mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-18 22:58:34 +01:00
feat(nix): the workspaces scenario, for every platform
workspaces sends the focused window to workspace 1, checks that it is put away and that the daemon has it there while the others stay in view, switches to workspace 1 and checks that only that window is in view and has the focus, and switches back. hidden now says a window is out of sight for any reason the daemon has: on KDE that is the parking desktop and also a desktop that is not the one in view. Snapshot's workspace, containers and focused_title take the focused workspace when none is given, and the fake daemon has two workspaces. The scenario passes in core-e2e on KVM: 106 checks.
This commit is contained in:
1 parent
e3cc27035a
commit
875a9ef41d
7 files changed
+164
-42
No files matched your search
@@ -154,7 +154,7 @@ the run.
|
||||
daemon put it away (`hidden`), ask the operating system for its frame
|
||||
(`os_window`, the oracle: the daemon's state is the thing under test), and take
|
||||
a screenshot. `core/scenarios` has the scenarios written against it: `tiling`,
|
||||
`focus`, `moving` and `stacks`, which `core-e2e` runs on KDE and which a suite
|
||||
`focus`, `moving`, `stacks` and `workspaces`, which `core-e2e` runs on KDE and which a suite
|
||||
of kfw can run unchanged. A method is added with the first scenario that needs
|
||||
it. `KdePlatform` (`kde_platform.py`) is a `Kde` session as a `Platform`, and
|
||||
the `core-e2e` suite runs the scenarios through it after its own sections.
|
||||
@@ -350,7 +350,7 @@ platform, so it follows four rules:
|
||||
suits it.
|
||||
- It is checked against a fake first. `tests/fake_platform.py` is a daemon in
|
||||
memory that follows `focus`, `cycle-focus`, `move`, `cycle-move`, `stack`,
|
||||
`cycle-stack` and `unstack` over three tiles, with switches to make it wrong in
|
||||
`cycle-stack`, `unstack`, `send-to-workspace` and `focus-workspace` over three tiles, with switches to make it wrong in
|
||||
one way; a scenario's unit test runs it against the right daemon and against
|
||||
wrong ones, so that a check that cannot fail is found without a VM.
|
||||
|
||||
|
||||
Reference in new issue
Block a user