NewPanelEditor: UI update of add panel widget (#23715)

* Small update proposal to add panel widget

* Fix smoketest

* Minor tweaks

* update snaps god damn it
This commit is contained in:
Dominik Prokop
2020-04-21 13:40:49 +02:00
committed by GitHub
parent 7e4292508f
commit 40114e8c07
6 changed files with 181 additions and 202 deletions

View File

@@ -19,7 +19,7 @@ export const addPanel = (config?: Partial<AddPanelConfig>) => {
getScenarioContext().then(({ lastAddedDashboardUid }) => {
e2e.flows.openDashboard(lastAddedDashboardUid);
e2e.pages.Dashboard.Toolbar.toolbarItems('Add panel').click();
e2e.pages.AddDashboard.ctaButtons('Add Query').click();
e2e.pages.AddDashboard.addNewPanel().click();
e2e()
.get('.ds-picker')
.click()

View File

@@ -3,6 +3,6 @@ import { pageFactory } from '../support';
export const AddDashboard = pageFactory({
url: '/dashboard/new',
selectors: {
ctaButtons: (text: string) => `Add Panel Widget CTA Button ${text}`,
addNewPanel: 'Add new panel',
},
});