playwright/tests/electron/electron-window-app.js

12 lines
243 B
JavaScript

const { app, BrowserWindow } = require('electron');
app.whenReady().then(() => {
const win = new BrowserWindow({
width: 800,
height: 600,
});
win.loadURL('about:blank');
})
app.on('window-all-closed', e => e.preventDefault());