mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 10:47:35 -05:00
Add more integration tests for py-components and examples (#709)
* 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>
This commit is contained in:
18
pyscriptjs/tests/integration/test_py_box.py
Normal file
18
pyscriptjs/tests/integration/test_py_box.py
Normal file
@@ -0,0 +1,18 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user