Fix spectron test to work on Windows in all cases

Change-type: none
This commit is contained in:
Alexis Svinartchouk 2020-11-26 18:20:00 +01:00
parent f46176fd10
commit edabacfb3a

View File

@ -46,7 +46,10 @@ describe('Spectron', function () {
expect(bounds.height).to.be.above(0);
expect(bounds.width).to.be.above(0);
expect(await app.browserWindow.isMinimized()).to.be.false;
expect(await app.browserWindow.isVisible()).to.be.true;
expect(
(await app.browserWindow.isVisible()) ||
(await app.browserWindow.isFocused()),
).to.be.true;
});
it('should set a proper title', async () => {