Playwright error

Error: expect(locator).toBeVisible() failed

The assertion's own error message tells you which failure this is: read 'Received:' carefully before changing anything.

Why this happens

How to fix it

  1. Check whether the failure says 'element(s) not found' (not in DOM) vs. 'hidden' (in DOM but not visible), since they need different fixes
  2. Add `await expect(locator).toBeAttached()` first to isolate 'not in DOM' from 'in DOM but hidden'
  3. Use the HTML reporter's failure screenshot to see the actual page state at the moment of failure