add delay wht more tests not conflict and fix tests with the current cli version
Testing / test (push) Successful in 21s
Package Extension / package-extension (push) Successful in 10s
Build & Publish Package / publish (push) Successful in 20s

This commit is contained in:
2026-04-10 13:41:49 +02:00
parent 54760412b3
commit 1b53a884e7
2 changed files with 20 additions and 3 deletions
+5 -1
View File
@@ -50,8 +50,12 @@ def test_extract_markdown(browser, http_tab):
def test_extract_markdown_missing_selector_errors(browser, http_tab):
browser("tabs.active", {"tabId": http_tab["id"]})
with pytest.raises(RuntimeError, match="No element"):
assert browser("dom.exists", {"selector": ".browser-cli-definitely-missing"}) is False
try:
browser("extract.markdown", {"selector": ".browser-cli-definitely-missing"})
except RuntimeError as exc:
assert "No element" in str(exc)
def test_dom_exists(browser, http_tab):