Playwright error

Error: page.click: Element is outside of the viewport

The click target sits outside the configured browser viewport and couldn't be scrolled into a clickable position.

Why this happens

How to fix it

  1. Increase the viewport in playwright.config.ts: `use: { viewport: { width, height } }`
  2. Manually call `locator.scrollIntoViewIfNeeded()` before acting when the element is inside a nested scroll container