mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-21 03:05:38 -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:
16
pyscriptjs/tests/integration/test_py_title.py
Normal file
16
pyscriptjs/tests/integration/test_py_title.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from .support import PyScriptTest
|
||||
|
||||
|
||||
class TestPyTitle(PyScriptTest):
|
||||
def test_title_shows_on_page(self):
|
||||
self.pyscript_run(
|
||||
"""
|
||||
<py-title>Hello, World!</py-title>
|
||||
"""
|
||||
)
|
||||
|
||||
py_title = self.page.query_selector("py-title")
|
||||
# check that we do have py-title in the page, if not
|
||||
# py_title will be none
|
||||
assert py_title
|
||||
assert py_title.text_content() == "Hello, World!"
|
||||
Reference in New Issue
Block a user