From 0c59168ceb799c62366a649fe3ad4b467f0721f6 Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Mon, 17 Aug 2020 19:02:17 +0200 Subject: [PATCH] Change isFocused check to isVisible in tests Change-type: patch --- tests/spectron/runner.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/spectron/runner.spec.ts b/tests/spectron/runner.spec.ts index 98f7c3e5..f8973e8e 100644 --- a/tests/spectron/runner.spec.ts +++ b/tests/spectron/runner.spec.ts @@ -46,7 +46,7 @@ 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.isFocused()).to.be.true; + expect(await app.browserWindow.isVisible()).to.be.true; }); it('should set a proper title', async () => {