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:
Fábio Rosado
2022-08-24 00:22:44 +01:00
committed by GitHub
parent e351889811
commit aa429f34d8
5 changed files with 214 additions and 5 deletions

View 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"