* Table: Enable tableNextGen by default * kill off tableNextGen feature flag * i18n * i18n * i18n * remove state beta from table panel * fix migration for 0 decimals migration * add explicit auto option bacjk * match impl from previous migrations code * try changing some selectors * remove timezone test from Cypress * fix PlaylistForm unit test * fix some selectors * clean up i18n, are these gridcells somehow? * return a couple of selectors caught in the dragnet to being cell instead of gridcell * fix i18n for en-US * clean up gdevs now that wrapHeaderText has no default * update role in e2e for when it is re-enabled
46 lines
1.4 KiB
TypeScript
46 lines
1.4 KiB
TypeScript
import { test, expect } from '@grafana/plugin-e2e';
|
|
|
|
test.describe(
|
|
'Visualization suggestions',
|
|
{
|
|
tag: ['@various'],
|
|
},
|
|
() => {
|
|
test('Should be shown and clickable', async ({ page, selectors, gotoPanelEditPage }) => {
|
|
// Open dashboard with edit panel
|
|
const panelEditPage = await gotoPanelEditPage({
|
|
dashboard: {
|
|
uid: 'aBXrJ0R7z',
|
|
},
|
|
id: '9',
|
|
});
|
|
|
|
// Try visualization suggestions
|
|
await panelEditPage.getByGrafanaSelector(selectors.components.PanelEditor.toggleVizPicker).click();
|
|
await panelEditPage
|
|
.getByGrafanaSelector(selectors.components.RadioButton.container)
|
|
.filter({ hasText: 'Suggestions' })
|
|
.click();
|
|
|
|
// Verify we see suggestions
|
|
const lineChartCard = panelEditPage.getByGrafanaSelector(
|
|
selectors.components.VisualizationPreview.card('Line chart')
|
|
);
|
|
await expect(lineChartCard).toBeVisible();
|
|
|
|
// Verify search works
|
|
const searchInput = page.getByPlaceholder('Search for...');
|
|
await searchInput.fill('Table');
|
|
|
|
// Should no longer see line chart
|
|
await expect(lineChartCard).toBeHidden();
|
|
|
|
// Select a visualization
|
|
await panelEditPage.getByGrafanaSelector(selectors.components.VisualizationPreview.card('Table')).click();
|
|
|
|
// Verify table header is visible
|
|
await expect(page.getByRole('grid').getByRole('row').first()).toBeVisible();
|
|
});
|
|
}
|
|
);
|