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