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) 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 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')