From e773530b685045f26f0df9fbaf11fff5bfb30aec Mon Sep 17 00:00:00 2001 From: Christian Toney Date: Fri, 27 Jun 2025 20:15:37 -0400 Subject: [PATCH] Add test: DialogueOptions hides condition and action buttons for conversations --- .../DialogueOptions/DialogueOptions.test.luau | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/DialogueEditor/components/Explorer/components/Preview/components/DialogueOptions/DialogueOptions.test.luau b/src/DialogueEditor/components/Explorer/components/Preview/components/DialogueOptions/DialogueOptions.test.luau index f741d2f..8effc17 100644 --- a/src/DialogueEditor/components/Explorer/components/Preview/components/DialogueOptions/DialogueOptions.test.luau +++ b/src/DialogueEditor/components/Explorer/components/Preview/components/DialogueOptions/DialogueOptions.test.luau @@ -124,6 +124,26 @@ return { end).toFinishBeforeSeconds(1); end); + + it("hides condition and action buttons for conversations", function() + + expect(function() + + render(); + + assert(screenGui, "ScreenGui should be initialized before running tests."); + local dialogueOptions = screenGui:FindFirstChildOfClass("Frame"); + assert(dialogueOptions, "DialogueOptions should be rendered."); + + local conditionButton = dialogueOptions:FindFirstChild("ConditionButton"); + expect(conditionButton).toBe(nil); + + local actionsDropdown = dialogueOptions:FindFirstChild("ActionsDropdown"); + expect(actionsDropdown).toBe(nil); + + end).toFinishBeforeSeconds(1); + + end); }