Skip to content

Commit

Permalink
Add test for OpenEnroth#1725
Browse files Browse the repository at this point in the history
pskelton committed Jul 15, 2024
1 parent 4157f70 commit c18c9b1
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/Bin/GameTest/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@ if(OE_BUILD_TESTS)
ExternalProject_Add(OpenEnroth_TestData
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/test_data_tmp
GIT_REPOSITORY https://github.com/OpenEnroth/OpenEnroth_TestData.git
GIT_TAG 61e29c1f0245b0eed29956ee2349f9c202ffa09a
GIT_TAG a55319b8e7b53e117527b2aef9ddaf710f53407c
SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/test_data
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
10 changes: 10 additions & 0 deletions test/Bin/GameTest/GameTests_1500.cpp
Original file line number Diff line number Diff line change
@@ -324,6 +324,16 @@ GAME_TEST(Issues, Issue1717) {
EXPECT_TRUE(statusBar.contains("Immolation deals 77 damage to 2 target(s)"));
}

GAME_TEST(Issues, Issue1725) {
// Finishing Strike the Devils quest on dark path glitches out game menus
auto screenTape = tapes.screen();
auto textTape = tapes.allGUIWindowsText();
test.playTraceFromTestData("issue_1725.mm7", "issue_1725.json");
EXPECT_EQ(screenTape.back(), SCREEN_HOUSE); // Make sure we end up back in the throne room
EXPECT_GT(textTape.flattened().filtered([](const auto& s) { return s.starts_with("THAT WAS AWESOME!"); }).size(), 0);
EXPECT_TRUE(textTape.flattened().contains("Exit Building")); // And can exit it
}

GAME_TEST(issues, Issue1726) {
// Blaster trainers do not check requirements and crash the game
auto textTape = tapes.allGUIWindowsText();

0 comments on commit c18c9b1

Please sign in to comment.