๐Ÿ“ฆ microsoft / playwright

๐Ÿ“„ electron-app-ready-event.js ยท 13 lines
1
2
3
4
5
6
7
8
9
10
11
12
13const { app } = require('electron');

globalThis.__playwrightLog = [];

globalThis.__playwrightLog.push(`isReady == ${app.isReady()}`);
app.whenReady().then(() => {
  globalThis.__playwrightLog.push(`whenReady resolved`);
  globalThis.__playwrightLog.push(`isReady == ${app.isReady()}`);
});

app.on('will-finish-launching', () => globalThis.__playwrightLog.push('will-finish-launching fired'));
app.on('ready', () => globalThis.__playwrightLog.push('ready fired'));