import pytest from .support import PyScriptTest class TestPyScriptRuntimeAttributes(PyScriptTest): @pytest.mark.skip("FIXME: Element interface is gone. Replace with PyDom") def test_injected_html_with_py_event(self): self.pyscript_run( r"""
""" ) self.page.locator("button").click() assert self.console.log.lines == ["hello pyscript"] @pytest.mark.skip("FIXME: Element interface is gone. Replace with PyDom") def test_added_py_event(self): self.pyscript_run( r""" """ ) self.page.locator("button").click() assert self.console.log.lines == ["hello pyscript"] @pytest.mark.skip("FIXME: Element interface is gone. Replace with PyDom") def test_added_then_removed_py_event(self): self.pyscript_run( r""" """ ) self.page.locator("button").click() self.page.locator("button").click() assert self.console.log.lines == ["hello pyscript"]