Skip to content

Commit

Permalink
tests: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetherinox committed Jul 22, 2024
1 parent afe024f commit cae4a4d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/main.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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');
})

0 comments on commit cae4a4d

Please sign in to comment.