From 6e9130550dd07e2b7a8e2c819ee6f212a34c28cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Merx?= Date: Tue, 5 Feb 2019 09:44:17 +0900 Subject: [PATCH] Add .standalone class to when in standalone mode (#6811) * Add .standalone class to when in standalone mode * Add test for .standalone class on --- superset/templates/superset/basic.html | 2 +- tests/dashboard_tests.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/superset/templates/superset/basic.html b/superset/templates/superset/basic.html index eec686e2d..28835d1ce 100644 --- a/superset/templates/superset/basic.html +++ b/superset/templates/superset/basic.html @@ -59,7 +59,7 @@ > - + {% block navbar %} {% if not standalone_mode %}
diff --git a/tests/dashboard_tests.py b/tests/dashboard_tests.py index bf3e7d112..c436753dd 100644 --- a/tests/dashboard_tests.py +++ b/tests/dashboard_tests.py @@ -93,6 +93,7 @@ class DashboardTests(SupersetTestCase): resp = self.get_resp(url + 'edit=true&standalone=true') self.assertIn('editMode": true', resp) self.assertIn('standalone_mode": true', resp) + self.assertIn('', resp) def test_save_dash(self, username='admin'): self.login(username=username)