import { test, expect } from '@grafana/plugin-e2e'; test('should display "No data" in case panel data is empty', async ({ gotoPanelEditPage, readProvisionedDashboard, }) => { const dashboard = await readProvisionedDashboard({ fileName: 'dashboard.json' }); const panelEditPage = await gotoPanelEditPage({ dashboard, id: '2' }); await expect(panelEditPage.panel.locator).toContainText('No data'); }); test('should display the battery panel when data is passed', async ({ panelEditPage, readProvisionedDataSource, page, }) => { const ds = await readProvisionedDataSource({ fileName: 'datasources.yml' }); await panelEditPage.datasource.set(ds.name); await panelEditPage.setVisualization('Battery Panel'); await expect(page.getByTestId('charge-viz-panel')).toBeVisible(); });