Skip to content

Commit 926c027

Browse files
authored
test: update electron Tracing expectations (microsoft#36076)
1 parent c61bf70 commit 926c027

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/electron/electron-tracing.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ test('should record trace', async ({ newWindow, server, runAndTrace }) => {
2828
expect(await window.evaluate('result')).toBe('Clicked');
2929
});
3030
await expect(traceViewer.actionTitles).toHaveText([
31-
/page.goto/,
32-
/page.click/,
33-
/page.evaluate/,
31+
/Navigate/,
32+
/Click/,
33+
/Evaluate/,
3434
]);
3535
});
3636

@@ -42,7 +42,7 @@ test('should support custom protocol', async ({ electronApp, newWindow, server,
4242
const traceViewer = await runAndTrace(async () => {
4343
await window.click('button');
4444
});
45-
const frame = await traceViewer.snapshotFrame('page.click');
45+
const frame = await traceViewer.snapshotFrame('Click');
4646
await expect(frame.locator('button')).toHaveCSS('color', 'rgb(255, 0, 0)');
4747
await expect(frame.locator('button')).toHaveCSS('font-weight', '700');
4848
});

0 commit comments

Comments
 (0)