@@ -16,7 +16,6 @@ internal class InputActionsEditorTests : UIToolkitBaseTestWindow<InputActionsEdi
1616{
1717 #region setup and teardown
1818 InputActionAsset m_Asset ;
19- const double kTimeoutSecs = 10.0 ;
2019
2120 public override void OneTimeSetUp ( )
2221 {
@@ -46,7 +45,7 @@ public override IEnumerator UnitySetup()
4645
4746 #region Helper methods
4847
49- IEnumerator WaitForActionMapRename ( int index , bool isActive , double timeoutSecs = 10.0 )
48+ IEnumerator WaitForActionMapRename ( int index , bool isActive , double timeoutSecs = kDefaultTimeoutSecs )
5049 {
5150 return WaitUntil ( ( ) =>
5251 {
@@ -59,7 +58,7 @@ IEnumerator WaitForActionMapRename(int index, bool isActive, double timeoutSecs
5958 } , $ "WaitForActionMapRename { index } { isActive } ", timeoutSecs ) ;
6059 }
6160
62- IEnumerator WaitForActionRename ( int index , bool isActive , double timeoutSecs = 10.0 )
61+ IEnumerator WaitForActionRename ( int index , bool isActive , double timeoutSecs = kDefaultTimeoutSecs )
6362 {
6463 return WaitUntil ( ( ) =>
6564 {
@@ -128,8 +127,8 @@ public IEnumerator CanRenameActionMap()
128127
129128 // changing the selection triggers a state change, wait for the scheduler to process the frame
130129 yield return WaitForSchedulerLoop ( ) ;
131- yield return WaitForNotDirty ( kTimeoutSecs ) ;
132- yield return WaitForFocus ( m_Window . rootVisualElement . Q ( "action-maps-list-view" ) , kTimeoutSecs ) ;
130+ yield return WaitForNotDirty ( ) ;
131+ yield return WaitForFocus ( m_Window . rootVisualElement . Q ( "action-maps-list-view" ) ) ;
133132
134133 // refetch the action map item since the ui may have refreshed.
135134 actionMapItem = actionMapsContainer . Query < InputActionMapsTreeViewItem > ( ) . ToList ( ) ;
@@ -203,14 +202,14 @@ public IEnumerator CanRenameAction()
203202
204203 // Selection change triggers a state change, wait for the scheduler to process the frame
205204 yield return WaitForSchedulerLoop ( ) ;
206- yield return WaitForNotDirty ( kTimeoutSecs ) ;
207- yield return WaitForFocus ( m_Window . rootVisualElement . Q < TreeView > ( "actions-tree-view" ) , kTimeoutSecs ) ;
205+ yield return WaitForNotDirty ( ) ;
206+ yield return WaitForFocus ( m_Window . rootVisualElement . Q < TreeView > ( "actions-tree-view" ) ) ;
208207
209208 // Re-fetch the actions since the UI may have refreshed.
210209 actionItem = actionContainer . Query < InputActionsTreeViewItem > ( ) . ToList ( ) ;
211210
212211 SimulateClickOn ( actionItem [ 1 ] ) ;
213- yield return WaitForNotDirty ( kTimeoutSecs ) ;
212+ yield return WaitForNotDirty ( ) ;
214213 // If the item is already focused, don't click again
215214 if ( ! actionItem [ 1 ] . IsFocused )
216215 {
0 commit comments