add message_editor_test and register in ctx

This commit is contained in:
scawful
2024-07-28 12:10:42 -04:00
parent 2cb942a712
commit c54ca779db
5 changed files with 30 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
#include "message_editor.h"
namespace yaze {
namespace app {
namespace editor {
void MessageEditor::RegisterTests(ImGuiTestEngine* e) {
test_engine = e;
ImGuiTest* t = nullptr;
t = IM_REGISTER_TEST(e, "message_editor", "read_all_text_data");
t->TestFunc = [](ImGuiTestContext* ctx) {
ctx->SetRef("##YazeMain/##TabBar/Message");
ctx->ItemClick("TestButton");
};
}
} // namespace editor
} // namespace app
} // namespace yaze