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.
1
#include "
e2e/framework_smoke_test.h
"
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`.
10
void
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
}
E2ETest_FrameworkSmokeTest
void E2ETest_FrameworkSmokeTest(ImGuiTestContext *ctx)
Definition
framework_smoke_test.cc:10
framework_smoke_test.h
yaze::test::gui::LoadRomInTest
void LoadRomInTest(ImGuiTestContext *ctx, const std::string &rom_path)
Definition
test_utils.cc:8
test_utils.h
test
e2e
framework_smoke_test.cc
Generated by
1.9.8