Class ContextMenuSimulator
Provides a testable wrapper for context menu interactions in UI Toolkit tests. Allows simulation and verification of context menu display, item selection, and menu content without invoking the native system menu.
Inherited Members
Namespace: UnityEditor.UIElements.TestFramework
Assembly: Unity.UI.TestFramework.Editor.dll
Syntax
public sealed class ContextMenuSimulator : MenuSimulator
Methods
AfterTest()
internal lifecycle method invoked automatically by the test fixture
Declaration
protected override void AfterTest()
Overrides
BeforeTest()
internal lifecycle method invoked automatically by the test fixture
Declaration
protected override void BeforeTest()