diff --git a/data/test_app.py b/data/test_app.py new file mode 100644 index 0000000000..1852d59b37 --- /dev/null +++ b/data/test_app.py @@ -0,0 +1,19 @@ +import pytest +from my_dash_app import app +from dash.testing import wait_for + +@pytest.fixture +def dash_app(): + yield app + +def test_header_presence(dash_app): + dash_duo = dash_app.server + assert dash_duo.find_element('h1').text == 'Soul Foods Sales Visualizer' + +def test_visualization_presence(dash_app): + dash_duo = dash_app.server + assert dash_duo.find_element('svg') is not None + +def test_region_picker_presence(dash_app): + dash_duo = dash_app.server + assert dash_duo.find_element('input[type="radio"]') is not None