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>
17 lines
457 B
Python
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!"
|