yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
framework_smoke_test.cc
Go to the documentation of this file.
2#include "test_utils.h"
3#include "imgui.h"
4#include "imgui_test_engine/imgui_te_context.h"
5
6// Smoke test for the E2E testing framework.
7// This test is run by the `test-gui` command.
8// It opens a window, clicks a button, and verifies that the button was clicked.
9// The GUI for this test is rendered in `test/yaze_test.cc`.
10void E2ETest_FrameworkSmokeTest(ImGuiTestContext* ctx)
11{
12 yaze::test::gui::LoadRomInTest(ctx, "zelda3.sfc");
13 ctx->SetRef("Hello World Window");
14 ctx->ItemClick("Button");
15 ctx->ItemCheck("Clicked 1 times");
16}
void E2ETest_FrameworkSmokeTest(ImGuiTestContext *ctx)
void LoadRomInTest(ImGuiTestContext *ctx, const std::string &rom_path)
Definition test_utils.cc:8