From 75e6c3e0289c8e140e945ee547358955dbcc635d Mon Sep 17 00:00:00 2001 From: Philippe Duval Date: Mon, 19 Nov 2018 15:28:42 -0500 Subject: [PATCH 1/3] Remove assets_url_path, add Content to display. --- tests/test_integration.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_integration.py b/tests/test_integration.py index 2e513547c6..8e00352f6a 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -362,7 +362,6 @@ def test_index_customization(self): def test_assets(self): app = dash.Dash(__name__, assets_folder='tests/assets', - assets_url_path='/test-assets', assets_ignore='.*ignored.*') app.index_string = ''' @@ -384,7 +383,7 @@ def test_assets(self): ''' app.layout = html.Div([ - html.Div(id='content'), + html.Div('Content', id='content'), dcc.Input(id='test') ], id='layout') From 5254c45309cad0ee42e0e2ca3d15bbd6775ea3a2 Mon Sep 17 00:00:00 2001 From: Philippe Duval Date: Mon, 19 Nov 2018 15:29:07 -0500 Subject: [PATCH 2/3] Set content background color to purple. --- tests/assets/nested_css/nested.css | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/assets/nested_css/nested.css b/tests/assets/nested_css/nested.css index 24ba3d2fa2..1bb8a8655a 100644 --- a/tests/assets/nested_css/nested.css +++ b/tests/assets/nested_css/nested.css @@ -1,3 +1,4 @@ #content { padding: 8px; + background-color: purple; } \ No newline at end of file From 2ef4c6bada9f4a3b9d4ee4592782b50c4f8c132a Mon Sep 17 00:00:00 2001 From: Philippe Duval Date: Mon, 19 Nov 2018 15:29:32 -0500 Subject: [PATCH 3/3] Set percy base_url/root_dir --- tests/IntegrationTests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/IntegrationTests.py b/tests/IntegrationTests.py index b141ddf620..8f22b6282f 100644 --- a/tests/IntegrationTests.py +++ b/tests/IntegrationTests.py @@ -38,7 +38,9 @@ def setUpClass(cls): cls.driver = webdriver.Chrome() loader = percy.ResourceLoader( - webdriver=cls.driver + webdriver=cls.driver, + base_url='/assets', + root_dir='tests/assets' ) cls.percy_runner = percy.Runner(loader=loader)