import { test } from 'vitest'
import { page } from 'vitest/browser'
test('scroll', async () => {
const [width, height] = [300, 300]
await page.viewport(width, height)
document.body.innerHTML = `
(0, 0)
(300, 0)
(0, 300)
(300, 300)
`
// scroll to make (300, 300) visible and (0, 0) not visible
window.scrollTo(250, 200)
await page.getByRole('button').mark('Render scroll')
})