mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(dashboard): draft dashboards should be viewable (#14207)
* fix(dashboard): draft dashboards should have open access * Remove a duplicate test
This commit is contained in:
@@ -437,11 +437,11 @@ class TestDashboard(SupersetTestCase):
|
||||
self.test_save_dash("alpha")
|
||||
|
||||
@pytest.mark.usefixtures("load_energy_table_with_slice", "load_dashboard")
|
||||
def test_users_can_view_published_dashboard(self):
|
||||
def test_users_can_list_published_dashboard(self):
|
||||
self.login("alpha")
|
||||
resp = self.get_resp("/api/v1/dashboard/")
|
||||
self.assertNotIn(f"/superset/dashboard/{pytest.hidden_dash_slug}/", resp)
|
||||
self.assertIn(f"/superset/dashboard/{pytest.published_dash_slug}/", resp)
|
||||
assert f"/superset/dashboard/{pytest.hidden_dash_slug}/" not in resp
|
||||
assert f"/superset/dashboard/{pytest.published_dash_slug}/" in resp
|
||||
|
||||
def test_users_can_view_own_dashboard(self):
|
||||
user = security_manager.find_user("gamma")
|
||||
|
||||
Reference in New Issue
Block a user