mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 02:37:41 -05:00
* Add more integration tests for py-components and examples for more information, see https://pre-commit.ci * remove xfail mark since we merged fix for issue 707 Co-authored-by: Fabio Pliger <fabio.pliger@gmail.com>
19 lines
434 B
Python
19 lines
434 B
Python
from .support import PyScriptTest
|
|
|
|
|
|
class TestPyButton(PyScriptTest):
|
|
def test_box(self):
|
|
self.pyscript_run(
|
|
"""
|
|
<py-box>
|
|
<py-box>
|
|
</py-box>
|
|
</py-box>
|
|
"""
|
|
)
|
|
|
|
pybox_element = self.page.query_selector_all("py-box")
|
|
|
|
assert len(pybox_element) == 2
|
|
assert pybox_element[1].get_attribute("class") == "py-box-child"
|