Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: update expectations for page-evaluate.spec.ts:374 (#41645)

Dmitry Gozman4f86fd5c9a53
diff --git a/tests/page/page-evaluate.spec.ts b/tests/page/page-evaluate.spec.ts
index d01b19cef0..19166207a4 100644
--- a/tests/page/page-evaluate.spec.ts
+++ b/tests/page/page-evaluate.spec.ts
@@ -377,12 +377,12 @@ it('should properly serialize PerformanceMeasure object', async ({ page }) => {
window.builtins.performance.mark('end');
window.builtins.performance.measure('my-measure', 'start', 'end');
return window.builtins.performance.getEntriesByType('measure');
- })).toEqual([{
+ })).toEqual([expect.objectContaining({
duration: expect.any(Number),
entryType: 'measure',
name: 'my-measure',
startTime: expect.any(Number),
- }]);
+ })]);
});
it('should properly serialize window.performance object', async ({ page }) => {