[Bug]: LocatorAssertions.not_to_have_css does not accept the pseudo option that to_have_css accepts
not_to_have_css rejects the pseudo option that to_have_css accepts. Seen on 1.63.0 from PyPI and on main at ae494b2 (Windows 11 x64, Python 3.14.7).
import inspect
from playwright.async_api import LocatorAssertions as L
print(inspect.signature(L.to_have_css))
print(inspect.signature(L.not_to_have_css))
pseudo appears only in the first signature, and await expect(locator).not_to_have_css("content", "x", pseudo="after") raises TypeError: LocatorAssertions.not_to_have_css() got an unexpected keyword argument 'pseudo'.
Expected: the call is accepted, as JS accepts expect(locator).not.toHaveCSS(name, value, { pseudo: "after" }).
In playwright/_impl/_assertions.py, to_have_css (line 481) takes pseudo and not_to_have_css (line 503) does not. The generated wrappers in playwright/async_api/_generated.py (lines 22827 and 22867) have the same gap, so the fix likely belongs in the API docs or the generator rather than a hand edit.
Hi, I'd like to work on this issue. I can investigate the assertion implementation, add regression tests for not_to_have_css(..., pseudo=...), and regenerate the affected API wrappers if needed. Could a maintainer assign this to me or confirm that a community contribution would be welcome?