From c51c6e38ac04295a4a6ad45b19bef1dbcdd6478f Mon Sep 17 00:00:00 2001 From: Vaxry Date: Wed, 23 Jul 2025 20:41:32 +0200 Subject: [PATCH] tests: add a few more workspace tests --- hyprtester/src/tests/main/workspaces.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hyprtester/src/tests/main/workspaces.cpp b/hyprtester/src/tests/main/workspaces.cpp index 96efacfac..79ce0da23 100644 --- a/hyprtester/src/tests/main/workspaces.cpp +++ b/hyprtester/src/tests/main/workspaces.cpp @@ -21,6 +21,8 @@ using namespace Hyprutils::Memory; static bool test() { NLog::log("{}Testing workspaces", Colors::GREEN); + EXPECT(Tests::windowCount(), 0); + // test on workspace "window" NLog::log("{}Switching to workspace 1", Colors::YELLOW); OK(getFromSocket("/dispatch workspace 1")); @@ -65,6 +67,11 @@ static bool test() { NLog::log("{}Switching to workspace 1", Colors::YELLOW); OK(getFromSocket("/dispatch workspace 1")); + { + auto str = getFromSocket("/workspaces"); + EXPECT_NOT_CONTAINS(str, "workspace ID 2 (2)"); + } + NLog::log("{}Switching to workspace m+1", Colors::YELLOW); OK(getFromSocket("/dispatch workspace m+1"));