test: fix flaky test (#180)

Closes https://github.com/microsoft/playwright-mcp/issues/177

`ResizeObserver` isn't instant!
This commit is contained in:
Simon Knott
2025-04-15 16:10:49 +02:00
committed by GitHub
parent 6891a525b3
commit 4d59e06184

View File

@@ -250,5 +250,5 @@ test('browser_resize', async ({ client }) => {
},
});
expect(response).toContainTextContent('Resized browser window');
expect(response).toContainTextContent('Window size: 390x780');
await expect.poll(() => client.callTool({ name: 'browser_snapshot' })).toContainTextContent('Window size: 390x780');
});