test: fix "should scroll zero-sized element into view" on headed (#13766)

Need to force-hide scrollbars.
This commit is contained in:
Dmitry Gozman 2022-04-26 16:26:53 +01:00 committed by GitHub
parent 6c922d2f6c
commit 1b159273ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -46,7 +46,11 @@ it('should scroll zero-sized element into view', async ({ page, isAndroid }) =>
it.fixme(isAndroid);
await page.setContent(`
<style>html,body { margin: 0; padding: 0; }</style>
<style>
html,body { margin: 0; padding: 0; }
::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }
</style>
<div style="height: 2000px; text-align: center; border: 10px solid blue;">
<h1>SCROLL DOWN</h1>
</div>