Browse Source

Fix panel menu test

David Kaltschmidt 7 years ago
parent
commit
7224ca6c62
1 changed files with 2 additions and 1 deletions
  1. 2 1
      public/app/features/panel/specs/metrics_panel_ctrl.jest.ts

+ 2 - 1
public/app/features/panel/specs/metrics_panel_ctrl.jest.ts

@@ -24,8 +24,9 @@ describe('MetricsPanelCtrl', () => {
       });
     });
 
-    describe('and has datasource set that supports explore', () => {
+    describe('and has datasource set that supports explore and user has powers', () => {
       beforeEach(() => {
+        ctrl.contextSrv = { isEditor: true };
         ctrl.datasource = { supportsExplore: true };
         additionalItems = ctrl.getAdditionalMenuItems();
       });