test: update the tests accordingly

This commit is contained in:
Karim shoair
2026-02-06 02:45:13 +02:00
parent aa7a95fb70
commit 9acc8194c5
3 changed files with 6 additions and 6 deletions
+3 -2
View File
@@ -121,11 +121,12 @@ class TestAdvancedSelectors:
# ::text pseudo-element
texts = page.css("p::text")
assert len(texts) == 2
assert isinstance(texts[0], TextHandler)
assert isinstance(texts[0], Selector)
assert isinstance(texts[0].get(), TextHandler)
# ::attr() pseudo-element
attrs = page.css("div::attr(class)")
assert "container" in attrs
assert "container" in attrs.getall()
def test_complex_attribute_operations(self, complex_html):
"""Test complex attribute handling"""