@@ -135,14 +135,12 @@ def test_confidence(pb):
135
135
pb .clear ()
136
136
with log_file () as log :
137
137
assert click_menu_item ("Text detection confidence threshold" , "Medium" )
138
- sleep (5 )
139
138
assert "'confidence': 'MEDIUM'" in log .read ()
140
139
with copy_to_desktop (TEST_FILE_HELLO_WORLD ) as filepath :
141
140
mark_screenshot (filepath )
142
141
sleep (5 )
143
142
assert pb .get_text () == "Hello World"
144
143
assert click_menu_item ("Text detection confidence threshold" , "Low" )
145
- sleep (5 )
146
144
assert "'confidence': 'LOW'" in log .read ()
147
145
148
146
@@ -178,7 +176,6 @@ def test_clear_clipboard(pb):
178
176
"""Test Clear clipboard menu item works"""
179
177
pb .set_text ("Hello World" )
180
178
assert click_menu_item ("Clear clipboard" )
181
- sleep (5 )
182
179
assert pb .get_text () == ""
183
180
184
181
@@ -187,7 +184,6 @@ def test_confirm_clipboard_changes_yes(pb):
187
184
pb .clear ()
188
185
with log_file () as log :
189
186
assert click_menu_item ("Confirm clipboard changes" )
190
- sleep (5 )
191
187
assert "'confirmation': 1" in log .read ()
192
188
with copy_to_desktop (TEST_FILE_HELLO_WORLD ) as filepath :
193
189
mark_screenshot (filepath )
@@ -203,7 +199,6 @@ def test_confirm_clipboard_changes_no(pb):
203
199
pb .set_text ("Nope" )
204
200
with log_file () as log :
205
201
assert click_menu_item ("Confirm clipboard changes" )
206
- sleep (5 )
207
202
assert "'confirmation': 1" in log .read ()
208
203
with copy_to_desktop (TEST_FILE_HELLO_WORLD ) as filepath :
209
204
mark_screenshot (filepath )
@@ -219,10 +214,8 @@ def test_enable_start_on_login():
219
214
# setup_teardown() should have removed the login item if it existed
220
215
assert "Textinator" not in list_login_items ()
221
216
assert click_menu_item ("Start Textinator on login" )
222
- sleep (5 )
223
217
assert "Textinator" in list_login_items ()
224
218
assert click_menu_item ("Start Textinator on login" )
225
- sleep (5 )
226
219
assert "Textinator" not in list_login_items ()
227
220
228
221
@@ -236,6 +229,5 @@ def test_quit():
236
229
"""Test Quit menu item"""
237
230
assert process_is_running ("Textinator" )
238
231
assert click_menu_item ("Quit Textinator" )
239
- sleep (5 )
240
232
assert not process_is_running ("Textinator" )
241
233
os .system ("open -a Textinator" )
0 commit comments