mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: update electron Tracing expectations (#36076)
This commit is contained in:
parent
c61bf70f5b
commit
926c02735e
@ -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');
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user