From 8c990e4e1d1a7a4ea23ffaf3724609bef9cc2afe Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Wed, 28 Oct 2026 19:33:26 -0700 Subject: [PATCH] feat(e2e): sync the neutral core from kfde 06c2b6e2 --- e2e/lib/komorebi_vm/core/scenarios/rules.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/e2e/lib/komorebi_vm/core/scenarios/rules.py b/e2e/lib/komorebi_vm/core/scenarios/rules.py index b6aa06c7..24b7ca83 100644 --- a/e2e/lib/komorebi_vm/core/scenarios/rules.py +++ b/e2e/lib/komorebi_vm/core/scenarios/rules.py @@ -72,5 +72,15 @@ def run(platform: Platform, checks: Checks) -> None: ) platform.komorebic("clear-all-workspace-rules") - for client in (once, always, ignored): + platform.komorebic("focus-workspace", "0") + # the title is the window's name here, so the first window of it goes before the next opens + platform.close(once) + platform.wait_for(lambda: platform.os_window(once) is None, timeout=20) + later = platform.spawn("sent-once") + checks.check( + "once the rules are cleared, a window they matched stays on the workspace in view", + platform.wait_for(lambda: _on(platform, "sent-once") == 0, timeout=20) + and not platform.wait_for(lambda: _on(platform, "sent-once") != 0, timeout=3), + ) + for client in (always, ignored, later): platform.close(client)