1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

chore: update electron

This commit is contained in:
2022-02-15 09:21:14 +01:00
parent fa3f3e1fd8
commit c5eb73ed3f
3 changed files with 1 additions and 20 deletions

View File

@ -1,25 +1,11 @@
const { _electron: electron } = require('playwright');
const { strict: assert } = require('assert');
const isWindows = process.platform === 'win32';
async function wait (ms) {
return new Promise(resolve => {
setTimeout(resolve, ms);
});
}
(async () => {
if (isWindows) {
console.log('Termporary skipping tests on Windows');
return;
}
console.log('Starting tests');
// Launch Electron app.
const electronApp = await electron.launch({ args: ['dist/main.js'] });
if (isWindows) await wait(5000);
/**
* App main window state
* @type {{isVisible: boolean; isDevToolsOpened: boolean; isCrashed: boolean}}