test: update electron Tracing expectations (#36076)

This commit is contained in:
Max Schmitt 2025-05-23 18:11:13 -07:00 committed by GitHub
parent c61bf70f5b
commit 926c02735e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,9 +28,9 @@ test('should record trace', async ({ newWindow, server, runAndTrace }) => {
expect(await window.evaluate('result')).toBe('Clicked');
});
await expect(traceViewer.actionTitles).toHaveText([
/page.goto/,
/page.click/,
/page.evaluate/,
/Navigate/,
/Click/,
/Evaluate/,
]);
});
@ -42,7 +42,7 @@ test('should support custom protocol', async ({ electronApp, newWindow, server,
const traceViewer = await runAndTrace(async () => {
await window.click('button');
});
const frame = await traceViewer.snapshotFrame('page.click');
const frame = await traceViewer.snapshotFrame('Click');
await expect(frame.locator('button')).toHaveCSS('color', 'rgb(255, 0, 0)');
await expect(frame.locator('button')).toHaveCSS('font-weight', '700');
});