Fix #1445 - Move the EditorView into ShadowDOM (#1449)

This commit is contained in:
Andrea Giammarchi
2023-05-05 10:41:05 +02:00
committed by GitHub
parent ee345a5206
commit 5086c23d47
2 changed files with 17 additions and 7 deletions

View File

@@ -44,7 +44,7 @@ class TestPyRepl(PyScriptTest):
"""
)
py_repl = self.page.locator("py-repl")
src = py_repl.inner_text()
src = py_repl.locator("div.cm-content").inner_text()
assert "print('hello from py-repl')" in src
py_repl.locator("button").click()
self.page.wait_for_selector("py-terminal")
@@ -601,7 +601,7 @@ class TestPyRepl(PyScriptTest):
assert self.console.info.lines[-1] == successMsg
py_repl = self.page.locator("py-repl")
code = py_repl.inner_text()
code = py_repl.locator("div.cm-content").inner_text()
assert "print('1')" in code
@skip_worker("TIMEOUT")