Skip to content

Commit fe8c933

Browse files
committed
Check on preload in smoke tests
1 parent cf0160a commit fe8c933

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/smoke.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ test('app launches and loads UI from server', async () => {
1010

1111
const window = await electronApp.firstWindow();
1212

13+
await expect(window.evaluate(() => typeof (window as any).desktopApi !== 'undefined')).resolves.toBe(true);
14+
1315
await expect(window.locator('h1:has-text("Intercept HTTP")')).toBeVisible({ timeout: 60000 });
1416

1517
await electronApp.close();

0 commit comments

Comments
 (0)