mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-11-03 21:49:50 -09:00
test: Fix wait_attr type
Some checks failed
Cockpit manifests / validate-manifests (push) Has been cancelled
Cockpit manifests / validate-schemas (push) Has been cancelled
Differential ShellCheck / shellcheck (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Some checks failed
Cockpit manifests / validate-manifests (push) Has been cancelled
Cockpit manifests / validate-schemas (push) Has been cancelled
Differential ShellCheck / shellcheck (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
ph_has_attr uses `getAttribute()` which returns a string containing the attribute value or null.
This commit is contained in:
parent
db420e6eae
commit
e2c433478c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue