mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 10:47:35 -05:00
Slightly imporved pyrepl (#1296)
* removed unnecessary getAttribute * removed unnecessary shadow and ShadowDOM in general, as it was never used * dropped redundant constructor * removed unnecessary usage of the label element * fixed redundant always-same buttons IDs
This commit is contained in:
committed by
GitHub
parent
543a27271f
commit
c8becca044
@@ -24,9 +24,8 @@ class TestPyRepl(PyScriptTest):
|
||||
<py-repl></py-repl>
|
||||
"""
|
||||
)
|
||||
py_repl = self.page.query_selector("py-repl")
|
||||
py_repl = self.page.query_selector("py-repl .py-repl-box")
|
||||
assert py_repl
|
||||
assert "Python" in py_repl.inner_text()
|
||||
|
||||
def test_execute_preloaded_source(self):
|
||||
"""
|
||||
@@ -69,7 +68,7 @@ class TestPyRepl(PyScriptTest):
|
||||
</py-repl>
|
||||
"""
|
||||
)
|
||||
self.page.wait_for_selector("#runButton")
|
||||
self.page.wait_for_selector("py-repl .py-repl-run-button")
|
||||
self.page.keyboard.press("Shift+Enter")
|
||||
wait_for_render(self.page, "*", "hello world")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user