add delay wht more tests not conflict and fix tests with the current cli version
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user