backend-infra-engineer: Release v0.3.2 snapshot
This commit is contained in:
16
test/e2e/framework_smoke_test.cc
Normal file
16
test/e2e/framework_smoke_test.cc
Normal file
@@ -0,0 +1,16 @@
|
||||
#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");
|
||||
}
|
||||
Reference in New Issue
Block a user