test: Fix wait_attr type

ph_has_attr uses `getAttribute()` which returns a string containing the
attribute value or null.
This commit is contained in:
Jelle van der Waa 2026-11-03 09:25:33 +01:00
parent 22fc1ee041
commit b606d2f035

View file

@ -903,7 +903,7 @@ class Browser:
self.wait_visible(selector)
self.wait_js_func('!ph_has_val', selector, val)
def wait_attr(self, selector: str, attr: str, val: object) -> None:
def wait_attr(self, selector: str, attr: str, val: str | None) -> None:
self._wait_present(selector)
self.wait_js_func('ph_has_attr', selector, attr, val)