spec: Don't test BrowserWindow.show() in CI
Some environments can not handle focusing very well.
This commit is contained in:
parent
19c8864c32
commit
cbe52c58ac
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,8 @@ remote = require 'remote'
|
|||
|
||||
BrowserWindow = remote.require 'browser-window'
|
||||
|
||||
isCI = remote.process.argv[1] == '--ci'
|
||||
|
||||
describe 'browser-window module', ->
|
||||
fixtures = path.resolve __dirname, 'fixtures'
|
||||
|
||||
|
@ -58,6 +60,7 @@ describe 'browser-window module', ->
|
|||
|
||||
describe 'BrowserWindow.show()', ->
|
||||
it 'should focus on window', ->
|
||||
return if isCI
|
||||
w.show()
|
||||
assert w.isFocused()
|
||||
|
||||
|
|
Loading…
Reference in a new issue