mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-09-24 14:20:08 +01:00
fix: owui tests
This commit is contained in:
committed by
ThePhaseless
parent
ecf7c03d7c
commit
c9d4cd4a4e
+2
-1
@@ -78,7 +78,8 @@ def fake_dep(*, html: str = ARTICLE_HTML) -> BrowserDepClass:
|
||||
page = AsyncMock()
|
||||
page.goto.return_value = MagicMock()
|
||||
page.content.return_value = html
|
||||
page.evaluate.return_value = "line one\n\nline two"
|
||||
page.locator = MagicMock()
|
||||
page.locator.return_value.inner_text = AsyncMock(return_value="line one\n\nline two")
|
||||
|
||||
def wait_for_load_state(state: str, **_kwargs: object) -> None:
|
||||
if state == "networkidle":
|
||||
|
||||
Reference in New Issue
Block a user