Dashboard Controls: Add UI for displaying under menu (#113517)
* feat: add options to render under the controls menu * fix: filter out hidden annotation layers from the dashboard-controls menu * fix: adjust spacing between annotation controls in the dashboard-controls menu * fix: e2e test for variables * feat: move the menu button next to the variables * fix: remove duplicate link controls * fix: show dashboard controls when the dashboard is not saved
This commit is contained in:
@@ -54,7 +54,13 @@ test.describe(
|
||||
await expect(descriptionInput).toHaveAttribute('placeholder', 'Descriptive text');
|
||||
await expect(descriptionInput).toHaveValue('');
|
||||
|
||||
await expect(page.locator('label').filter({ hasText: 'Hide' })).toBeVisible();
|
||||
// Display
|
||||
await expect(page.locator('label', { hasText: /^Display$/ })).toBeVisible();
|
||||
const displaySelect = dashboardPage.getByGrafanaSelector(
|
||||
selectors.pages.Dashboard.Settings.Variables.Edit.General.generalDisplaySelect
|
||||
);
|
||||
await expect(displaySelect).toBeVisible();
|
||||
await expect(displaySelect).toHaveValue('Above dashboard');
|
||||
|
||||
// Check datasource selector
|
||||
const datasourceSelect = dashboardPage.getByGrafanaSelector(
|
||||
|
||||
Reference in New Issue
Block a user