microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
67.12k stars 3.69k forks source link

[Bug]: toBeHidden Ignores Timeout #33656

Open jwalkerinterpres opened 3 days ago

jwalkerinterpres commented 3 days ago

Version

Latest

Steps to reproduce

Please re-open https://github.com/microsoft/playwright/issues/30953. It has all the relevant details, including a reproduction script ... but really this is such a basic issue you shouldn't need one (just do a toBeHidden with a long timeout, then watch the video and see it wait 1ms).

Expected behavior

See https://github.com/microsoft/playwright/issues/30953

Actual behavior

See https://github.com/microsoft/playwright/issues/30953

Additional context

See https://github.com/microsoft/playwright/issues/30953

Environment

See https://github.com/microsoft/playwright/issues/30953
pavelfeldman commented 3 days ago

I can see strict mode violation exceptions. Locators must be strict. You can add .first() if you want to opt out of strictless. https://playwright.dev/docs/locators#strictness