cleanup tests
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
"""Tests for extract.* commands (require an http/https active tab)."""
|
||||
import pytest
|
||||
from browser_cli.client import send_command
|
||||
|
||||
|
||||
def test_extract_links(browser, http_tab):
|
||||
@@ -58,15 +56,3 @@ def test_extract_markdown_missing_selector_errors(browser, http_tab):
|
||||
assert "No element" in str(exc)
|
||||
|
||||
|
||||
def test_dom_exists(browser, http_tab):
|
||||
browser("tabs.active", {"tabId": http_tab["id"]})
|
||||
result = browser("dom.exists", {"selector": "body"})
|
||||
assert result is True
|
||||
|
||||
|
||||
def test_dom_query(browser, http_tab):
|
||||
browser("tabs.active", {"tabId": http_tab["id"]})
|
||||
elements = browser("dom.query", {"selector": "body"})
|
||||
assert isinstance(elements, list)
|
||||
assert len(elements) > 0
|
||||
assert elements[0].get("tag") == "body"
|
||||
|
||||
Reference in New Issue
Block a user