Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ return {

end;

local function render(initialValue: boolean): ModuleScript
local function render(initialValue: boolean?): ModuleScript

assert(reactRoot, "React root should be initialized before running tests.");

Expand Down Expand Up @@ -138,6 +138,24 @@ return {
end).toFinishBeforeSeconds(1);

end);

it(`automatically refreshes if ShouldAutoTriggerConversation attribute is toggled`, function()

expect(function()

local selectedScript = render();
verifyReactStatus();

local checkbox = getCheckbox();
selectedScript:SetAttribute("ShouldAutoTriggerConversation", true);
checkbox:GetPropertyChangedSignal("BackgroundColor3"):Wait();

selectedScript:SetAttribute("ShouldAutoTriggerConversation", false);
checkbox:GetPropertyChangedSignal("BackgroundColor3"):Wait();

end).toFinishBeforeSeconds(1);

end);

}

Expand Down