Skip to content

Commit

Permalink
docs: tweak verbiage
Browse files Browse the repository at this point in the history
  • Loading branch information
goosewobbler authored Feb 1, 2025
1 parent 2b94f0f commit 1181162
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/window-management.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ The service automatically handles window management in your Electron application
## Example

```ts
// At the test script, the service automatically handles window focus
// Test script - the service automatically handles window focus
await expect(browser).toHaveTitle('Splash Screen');

// At the main process of electron, switching a new window
// Electron main process - switching a new window
splashWindow.hide();
const mainWindow = new BrowserWindow({
/* some options */
});
splashWindow.destroy();

// At the test script, the service automatically switches to the new window
// Test script - the service automatically switches to the new window
await expect(browser).toHaveTitle('Main Window');
```

Expand Down

0 comments on commit 1181162

Please sign in to comment.