Add more unit tests for PyButton and BaseEvalElement (#711)

* Add more unit tests

* Rebase main and fix failing tests

* xfail flaky test

* Fix import
This commit is contained in:
Fábio Rosado
2022-08-26 13:25:51 +01:00
committed by GitHub
parent 9e4cb79679
commit 9de154595a
4 changed files with 174 additions and 0 deletions

View File

@@ -169,6 +169,9 @@ class TestExamples(PyScriptTest):
assert self.page.title() == "PyScript/Panel Streaming Demo"
wait_for_render(self.page, "*", "<div.*?class=['\"]bk-root['\"].*?>")
@pytest.mark.xfail(
reason="Test seems flaky, sometimes it doesn't return result from second repl"
)
def test_repl(self):
self.goto("examples/repl.html")
self.wait_for_pyscript()