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:
@ -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}}
|
||||
|
Reference in New Issue
Block a user