- Introduced new methods in `Controller`, `EditorManager`, and `OverworldEditor` to access the `Overworld` instance, improving modularity and interaction with the overworld data. - Added `GetTile` method in `Overworld` to retrieve tile data based on coordinates, enhancing functionality for tile manipulation. - Implemented a new testing framework with automated GUI tests, including `CanvasSelectionTest` and `FrameworkSmokeTest`, to validate user interactions and ensure robustness. - Updated `CMakeLists.txt` to include new test files and dependencies, streamlining the build process for testing. - Refactored logging behavior to ensure proper file handling during logging operations, improving reliability in logging outputs.
17 lines
586 B
C++
17 lines
586 B
C++
#include "e2e/framework_smoke_test.h"
|
|
#include "test_utils.h"
|
|
#include "imgui.h"
|
|
#include "imgui_test_engine/imgui_te_context.h"
|
|
|
|
// Smoke test for the E2E testing framework.
|
|
// This test is run by the `test-gui` command.
|
|
// It opens a window, clicks a button, and verifies that the button was clicked.
|
|
// The GUI for this test is rendered in `test/yaze_test.cc`.
|
|
void E2ETest_FrameworkSmokeTest(ImGuiTestContext* ctx)
|
|
{
|
|
yaze::test::gui::LoadRomInTest(ctx, "zelda3.sfc");
|
|
ctx->SetRef("Hello World Window");
|
|
ctx->ItemClick("Button");
|
|
ctx->ItemCheck("Clicked 1 times");
|
|
}
|