From cae4a4d65476ddeb235152520fbcd51cf2044edb Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Mon, 22 Jul 2024 12:58:21 -0700 Subject: [PATCH] tests: update --- tests/main.spec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/main.spec.js b/tests/main.spec.js index 9e3723b..215a4a4 100644 --- a/tests/main.spec.js +++ b/tests/main.spec.js @@ -25,7 +25,7 @@ import jimp from 'jimp' test('launch ntfy-desktop', async () => { const app = await electron.launch({ - args: ['index.js'], + args: ['index.js', '--quit'], env: { ...process.env, NODE_ENV: 'development', @@ -69,6 +69,9 @@ test('full load', async () => { const ss1 = await window.screenshot({ path: './test-results/1.png' }) - // close app + /* + Since the close button minimizes to tray, activate the menu and select quit + */ + await eph.clickMenuItemById(app, 'quit'); })