Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Chang Test for Path (adding index for type)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Feustel committed May 6, 2024
1 parent 6796bc3 commit 6265c4d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/GTestPath/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@ TEST(GTestExample, ClickWithIndex)
Button 2 clicked
Button 3 clicked)RSLT";
EXPECT_EQ(result, expected_result);
}

TEST(GTestExample, TypeNumbers)
{
srv->setStringProperty("mainWindow/results", "text", "");
srv->mouseClick(spix::ItemPath("mainWindow/#Button#2"));
srv->wait(std::chrono::milliseconds(500));

auto result = srv->getStringProperty("mainWindow/results", "text");
auto expected_result = R"RSLT(Button 2 clicked)RSLT";
EXPECT_EQ(result, expected_result);
srv->quit();
}

Expand Down

0 comments on commit 6265c4d

Please sign in to comment.