Skip to content

Commit

Permalink
tests: update
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetherinox committed Jul 24, 2024
1 parent abc1f9c commit 4ef95f0
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions tests/main.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,33 +69,9 @@ test( 'full load', async () =>

const timestamp = Date.now().toString()

const appPath = await app.evaluate( async ( { app } ) =>
{
return app.getAppPath()
} )

console.log( appPath )

const window = await app.firstWindow()
console.log( await window.title() )
window.on( 'console', console.log )

/*
wait for #root div before taking screenshot
*/

await window.waitForSelector( '#root', { state: 'visible' } )

/*
path: `e2e/screenshots/test-${timestamp}.png`,
*/

const ss1 = await window.screenshot( { path: './test-results/1.png' } )

/*
Since the close button minimizes to tray, activate the menu and select quit
*/

await eph.clickMenuItemById( app, 'quit' )
await app.close()
} )

0 comments on commit 4ef95f0

Please sign in to comment.