Skip to content

Commit c51c6e3

Browse files
committed
tests: add a few more workspace tests
1 parent 55f2daa commit c51c6e3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hyprtester/src/tests/main/workspaces.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ using namespace Hyprutils::Memory;
2121
static bool test() {
2222
NLog::log("{}Testing workspaces", Colors::GREEN);
2323

24+
EXPECT(Tests::windowCount(), 0);
25+
2426
// test on workspace "window"
2527
NLog::log("{}Switching to workspace 1", Colors::YELLOW);
2628
OK(getFromSocket("/dispatch workspace 1"));
@@ -65,6 +67,11 @@ static bool test() {
6567
NLog::log("{}Switching to workspace 1", Colors::YELLOW);
6668
OK(getFromSocket("/dispatch workspace 1"));
6769

70+
{
71+
auto str = getFromSocket("/workspaces");
72+
EXPECT_NOT_CONTAINS(str, "workspace ID 2 (2)");
73+
}
74+
6875
NLog::log("{}Switching to workspace m+1", Colors::YELLOW);
6976
OK(getFromSocket("/dispatch workspace m+1"));
7077

0 commit comments

Comments
 (0)