Skip to content

Commit 7e3b17c

Browse files
committed
Try to make e2e behave the same on CI and local.
1 parent 3094161 commit 7e3b17c

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

examples/basic-react/index.e2e.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ test('Hello Electron', async () => {
1111
});
1212

1313
const window = await electronApp.firstWindow();
14+
await window.waitForLoadState('load');
1415
expect(await window.title()).toBe('Hello from Electron renderer!');
1516

1617
const response = await window.textContent('[data-testid="greeting"]');

examples/basic-vanilla-esm/index.e2e.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ test('Hello Electron', async () => {
1515
});
1616

1717
const window = await electronApp.firstWindow();
18+
await window.waitForLoadState('load');
1819
expect(await window.title()).toBe('Hello from Electron renderer!');
1920

2021
const response = await window.textContent('[data-testid="greeting"]');

examples/manual-preload-react/index.e2e.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ test('Hello Electron', async () => {
1111
});
1212

1313
const window = await electronApp.firstWindow();
14+
await window.waitForLoadState('load');
1415
expect(await window.title()).toBe('Hello from Electron renderer!');
1516

1617
const response = await window.textContent('[data-testid="greeting"]');

0 commit comments

Comments
 (0)