mirror of
https://github.com/microsoft/playwright-mcp.git
synced 2025-07-28 01:32:27 +08:00
test: fix flaky test (#180)
Closes https://github.com/microsoft/playwright-mcp/issues/177 `ResizeObserver` isn't instant!
This commit is contained in:
parent
6891a525b3
commit
4d59e06184
@ -250,5 +250,5 @@ test('browser_resize', async ({ client }) => {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
expect(response).toContainTextContent('Resized browser window');
|
expect(response).toContainTextContent('Resized browser window');
|
||||||
expect(response).toContainTextContent('Window size: 390x780');
|
await expect.poll(() => client.callTool({ name: 'browser_snapshot' })).toContainTextContent('Window size: 390x780');
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user