@@ -45,7 +45,7 @@ public override IEnumerator UnitySetup()
45
45
46
46
#region Helper methods
47
47
48
- IEnumerator WaitForActionMapRename ( int index , bool isActive , double timeoutSecs = 5 .0)
48
+ IEnumerator WaitForActionMapRename ( int index , bool isActive , double timeoutSecs = 10 .0)
49
49
{
50
50
return WaitUntil ( ( ) =>
51
51
{
@@ -58,7 +58,7 @@ IEnumerator WaitForActionMapRename(int index, bool isActive, double timeoutSecs
58
58
} , $ "WaitForActionMapRename { index } { isActive } ", timeoutSecs ) ;
59
59
}
60
60
61
- IEnumerator WaitForActionRename ( int index , bool isActive , double timeoutSecs = 5 .0)
61
+ IEnumerator WaitForActionRename ( int index , bool isActive , double timeoutSecs = 10 .0)
62
62
{
63
63
return WaitUntil ( ( ) =>
64
64
{
@@ -87,7 +87,6 @@ public void CanListActionMaps()
87
87
}
88
88
89
89
[ UnityTest ]
90
- [ Ignore ( "Instability, see ISXB-1284" ) ]
91
90
public IEnumerator CanCreateActionMap ( )
92
91
{
93
92
var button = m_Window . rootVisualElement . Q < Button > ( "add-new-action-map-button" ) ;
@@ -116,7 +115,6 @@ public IEnumerator CanCreateActionMap()
116
115
}
117
116
118
117
[ UnityTest ]
119
- [ Ignore ( "Instability, see ISXB-1284" ) ]
120
118
public IEnumerator CanRenameActionMap ( )
121
119
{
122
120
var actionMapsContainer = m_Window . rootVisualElement . Q ( "action-maps-container" ) ;
@@ -128,9 +126,10 @@ public IEnumerator CanRenameActionMap()
128
126
m_Window . rootVisualElement . Q < ListView > ( "action-maps-list-view" ) . selectedIndex = 1 ;
129
127
130
128
// changing the selection triggers a state change, wait for the scheduler to process the frame
129
+ var timeoutSecs = 10.0 ;
131
130
yield return WaitForSchedulerLoop ( ) ;
132
- yield return WaitForNotDirty ( ) ;
133
- yield return WaitForFocus ( m_Window . rootVisualElement . Q ( "action-maps-list-view" ) ) ;
131
+ yield return WaitForNotDirty ( timeoutSecs ) ;
132
+ yield return WaitForFocus ( m_Window . rootVisualElement . Q ( "action-maps-list-view" ) , timeoutSecs ) ;
134
133
135
134
// refetch the action map item since the ui may have refreshed.
136
135
actionMapItem = actionMapsContainer . Query < InputActionMapsTreeViewItem > ( ) . ToList ( ) ;
@@ -203,16 +202,17 @@ public IEnumerator CanRenameAction()
203
202
m_Window . rootVisualElement . Q < TreeView > ( "actions-tree-view" ) . selectedIndex = 1 ;
204
203
205
204
// Selection change triggers a state change, wait for the scheduler to process the frame
205
+ var timeoutSecs = 10.0 ;
206
206
yield return WaitForSchedulerLoop ( ) ;
207
- yield return WaitForNotDirty ( ) ;
207
+ yield return WaitForNotDirty ( timeoutSecs ) ;
208
208
yield return WaitForFocus ( m_Window . rootVisualElement . Q < TreeView > ( "actions-tree-view" ) ) ;
209
209
210
210
// Re-fetch the actions since the UI may have refreshed.
211
211
actionItem = actionContainer . Query < InputActionsTreeViewItem > ( ) . ToList ( ) ;
212
212
213
213
// Click twice to start the rename
214
214
SimulateClickOn ( actionItem [ 1 ] ) ;
215
- yield return WaitForNotDirty ( ) ;
215
+ yield return WaitForNotDirty ( timeoutSecs ) ;
216
216
217
217
// If the item is already focused, don't click again
218
218
if ( ! actionItem [ 1 ] . IsFocused )
0 commit comments