mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-25 04:47:55 +00:00
Wait after checking for updates for UI tests (#2798)
This commit is contained in:
1 parent
0173a351f4
commit
64927aac59
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user