From c3622b89eeef8f05f58845a1ac3d80857e1698c9 Mon Sep 17 00:00:00 2001 From: Pablo Date: Wed, 14 Sep 2016 17:52:23 +0200 Subject: [PATCH] hide window before removing it, otherwise doesn't work --- lib/motion/project/template/ios/spec-helpers/ui.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/motion/project/template/ios/spec-helpers/ui.rb b/lib/motion/project/template/ios/spec-helpers/ui.rb index 215b227a..e73d321c 100644 --- a/lib/motion/project/template/ios/spec-helpers/ui.rb +++ b/lib/motion/project/template/ios/spec-helpers/ui.rb @@ -197,6 +197,7 @@ def self.extended(context) end # Remove window and ensure a new one will be created on the next run. + app.keyWindow.hidden = true window.removeFromSuperview proper_wait(0.3) # give objects a chance to do their cleanup, otherwise sometimes a segfault will occur @window = nil