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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue