From d48e81dd2f52434a7fb86a707a8483e26e779078 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andre=CC=81=20Rivet?= Date: Wed, 10 Apr 2019 20:02:32 -0400 Subject: [PATCH] 2 nully tests --- tests/test_render.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/tests/test_render.py b/tests/test_render.py index 63b9f86..5452d99 100644 --- a/tests/test_render.py +++ b/tests/test_render.py @@ -475,7 +475,7 @@ def test_initial_state(self): assert_clean_console(self) - def test_nully_child(self): + def test_array_of_nully_child(self): app = Dash(__name__) app.layout = html.Div(id='nully-wrapper', children=[0]) @@ -488,6 +488,19 @@ def test_nully_child(self): assert_clean_console(self) + def test_of_nully_child(self): + app = Dash(__name__) + app.layout = html.Div(id='nully-wrapper', children=0) + + self.startServer(app) + + self.wait_for_element_by_css_selector('#nully-wrapper') + wrapper = self.driver.find_element_by_id('nully-wrapper') + + self.assertEqual(wrapper.get_attribute('innerHTML'), '0') + + assert_clean_console(self) + def test_simple_callback(self): app = Dash(__name__) app.layout = html.Div([