Wait after checking for updates for UI tests (#2798)

This commit is contained in:
Zorg authored and GitHub committed 2025-11-13 21:01:49 -08:00
1 parent 956385b5aa
commit ccd1e7a2be
1 file changed
+3
+3
View File
@@ -52,6 +52,9 @@ class SUTestApplicationTest: XCTestCase
let checkForUpdatesMenuItem = menuBarsQuery.menuItems["Check for Updates…"]
if checkForUpdatesMenuItem.isEnabled {
checkForUpdatesMenuItem.click()
// Give some time to wait for window to show up
sleep(5)
} else {
// We haven't checked for updates in a while so an automatic check was already done
// in this case click the main menu again to deactivate it