Files
pyscript/pyscriptjs/tests/integration/test_py_title.py
Fábio Rosado aa429f34d8 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>
2022-08-23 18:22:44 -05:00

17 lines
457 B
Python

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