diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-07-23 20:41:32 +0200 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-07-23 20:41:38 +0200 |
| commit | c51c6e38ac04295a4a6ad45b19bef1dbcdd6478f (patch) | |
| tree | f2133904387429fe315a1cdf5c0026f151ce57ab /hyprtester/src/tests/main/workspaces.cpp | |
| parent | 55f2daa21ec6193b8b6f7a6a037534e7db34ee42 (diff) | |
tests: add a few more workspace tests
Diffstat (limited to 'hyprtester/src/tests/main/workspaces.cpp')
| -rw-r--r-- | hyprtester/src/tests/main/workspaces.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hyprtester/src/tests/main/workspaces.cpp b/hyprtester/src/tests/main/workspaces.cpp index 96efacfa..79ce0da2 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")); |
