mirror of https://github.com/apache/superset.git
Add .standalone class to <body> when in standalone mode (#6811)
* Add .standalone class to <body> when in standalone mode * Add test for .standalone class on <body>
This commit is contained in:
parent
5a40f71710
commit
6e9130550d
|
@ -59,7 +59,7 @@
|
||||||
>
|
>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body {% if standalone_mode %}class="standalone"{% endif %}>
|
||||||
{% block navbar %}
|
{% block navbar %}
|
||||||
{% if not standalone_mode %}
|
{% if not standalone_mode %}
|
||||||
<header class="top" role="header">
|
<header class="top" role="header">
|
||||||
|
|
|
@ -93,6 +93,7 @@ class DashboardTests(SupersetTestCase):
|
||||||
resp = self.get_resp(url + 'edit=true&standalone=true')
|
resp = self.get_resp(url + 'edit=true&standalone=true')
|
||||||
self.assertIn('editMode": true', resp)
|
self.assertIn('editMode": true', resp)
|
||||||
self.assertIn('standalone_mode": true', resp)
|
self.assertIn('standalone_mode": true', resp)
|
||||||
|
self.assertIn('<body class="standalone">', resp)
|
||||||
|
|
||||||
def test_save_dash(self, username='admin'):
|
def test_save_dash(self, username='admin'):
|
||||||
self.login(username=username)
|
self.login(username=username)
|
||||||
|
|
Loading…
Reference in New Issue