Kaynağa Gözat

Adding explicit wait to avoid teardown issues with external tools

Signed-off-by: jckand-amzn <[email protected]>
jckand-amzn 3 yıl önce
ebeveyn
işleme
4426d15d32

+ 5 - 0
AutomatedTesting/Gem/PythonTests/editor/EditorScripts/Menus_FileMenuOptions.py

@@ -26,6 +26,8 @@ def Menus_FileMenuOptions_Work():
     :return: None
     :return: None
     """
     """
 
 
+    import azlmbr.legacy.general as general
+
     import editor_python_test_tools.hydra_editor_utils as hydra
     import editor_python_test_tools.hydra_editor_utils as hydra
     import editor_python_test_tools.pyside_utils as pyside_utils
     import editor_python_test_tools.pyside_utils as pyside_utils
     from editor_python_test_tools.utils import Report
     from editor_python_test_tools.utils import Report
@@ -64,6 +66,9 @@ def Menus_FileMenuOptions_Work():
         )
         )
         Report.result(menu_action_triggered, action_triggered)
         Report.result(menu_action_triggered, action_triggered)
 
 
+    # Wait a few seconds for Project Settings dialogs to load so teardown can properly close them
+    general.idle_wait(2.0)
+
 
 
 if __name__ == "__main__":
 if __name__ == "__main__":