@@ -39,6 +39,22 @@ def NVDA_Starts():
3939 _process .process_should_be_running (_nvdaProcessAlias )
4040
4141
42+ def open_welcome_dialog_from_menu ():
43+ spy = _nvdaLib .getSpyLib ()
44+ spy .emulateKeyPress ("NVDA+n" )
45+ spy .emulateKeyPress ("h" )
46+ spy .emulateKeyPress ("l" )
47+ spy .wait_for_specific_speech ("Welcome to NVDA" ) # ensure the dialog is present.
48+
49+
50+ def open_about_dialog_from_menu ():
51+ spy = _nvdaLib .getSpyLib ()
52+ spy .emulateKeyPress ("NVDA+n" )
53+ spy .emulateKeyPress ("h" )
54+ spy .emulateKeyPress ("a" )
55+ spy .wait_for_specific_speech ("About NVDA" ) # ensure the dialog is present.
56+
57+
4258def quits_from_menu (showExitDialog = True ):
4359 """Ensure NVDA can be quit from menu."""
4460 spy = _nvdaLib .getSpyLib ()
@@ -61,17 +77,14 @@ def quits_from_menu(showExitDialog=True):
6177 _builtIn .sleep (1 ) # the dialog is not always receiving the enter keypress, wait a little for it
6278 spy .emulateKeyPress ("enter" , blockUntilProcessed = False ) # don't block so NVDA can exit
6379
64- _process .wait_for_process (_nvdaProcessAlias , timeout = "10 sec" )
80+ _process .wait_for_process (_nvdaProcessAlias , timeout = "3 sec" )
6581 _process .process_should_be_stopped (_nvdaProcessAlias )
6682
6783
6884def quits_from_keyboard ():
6985 """Ensure NVDA can be quit from keyboard."""
7086 spy = _nvdaLib .getSpyLib ()
71- spy .wait_for_specific_speech ("Welcome to NVDA" ) # ensure the dialog is present.
72- spy .wait_for_speech_to_finish ()
73- _builtIn .sleep (1 ) # the dialog is not always receiving the enter keypress, wait a little longer for it
74- spy .emulateKeyPress ("enter" )
87+ _builtIn .sleep (1 ) # the dialog is not always receiving the enter keypress, wait a little for it
7588
7689 spy .emulateKeyPress ("NVDA+q" )
7790 exitTitleIndex = spy .wait_for_specific_speech ("Exit NVDA" )
@@ -87,8 +100,9 @@ def quits_from_keyboard():
87100 ])
88101 )
89102 _builtIn .sleep (1 ) # the dialog is not always receiving the enter keypress, wait a little longer for it
103+ _process .process_should_be_running (_nvdaProcessAlias )
90104 spy .emulateKeyPress ("enter" , blockUntilProcessed = False ) # don't block so NVDA can exit
91- _process .wait_for_process (_nvdaProcessAlias , timeout = "10 sec" )
105+ _process .wait_for_process (_nvdaProcessAlias , timeout = "3 sec" )
92106 _process .process_should_be_stopped (_nvdaProcessAlias )
93107
94108
0 commit comments