* [Dashboard] Makes lens default editor for creating new panels (#96181) * Makes lens default editor in dashboard Added all editors menu to dashboard panel toolbar Fixed toggle on editor menu Removed unnecessary comments Added data test subjects to editor menu buttons Populated editor menu with vis types Removed unused imports Fixed imports Adds showCreateNewMenu prop to AddPanelFlyout Rearranged order of editor menu options Fixed ts errors Added groupnig to embeddable factory Use embeddable state transfer service to redirect to editors Added showGroups to TypeSelectionState Fixed add panel flyout test Fixed data test subjects Fixed factory groupings Removed unused import Fixed page object Added telemtry to dashboard toolbar Added telemtry to editor menu Fix ml embeddable functional tests Fix lens dashboard test Fix empty dashboard test Fixed ts errors Fixed time to visualize security test Fixed empty dashboard test Fixed clickAddNewEmbeddableLink in dashboardAddPanel service Fixed agg based vis functional tests Revert test changes Fixed typo Fix tests Fix more tests Fix ts errors Fixed more tests Fixed toolbar sizes and margins to align with lens Fix tests Fixed callbacks Fixed button prop type New vis modal copy updates Added savedObjectMetaData to log stream embeddable factory Addressed feedback Fixed ts error Fix more tests Fixed ts errors Updated dashboard empty prompt copy Adds tooltip to log stream embeddable factory saved object meta data Made icons monochrome in toolbar Fixed icon colors in dark mode Cleaned up css Fixed ts errors Updated snapshot Fixed map icon color * Added tooltips for ML embeddables * Restored test * Added empty dashboard panel test * Fixed i18n id * Fix dashboard_embedding test * Removed unused service * Fixed i18n error * Added icon and description properties to embeddable factory definition * Fixed ts errors * Fixed expected value Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> * Updated snapshots Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
34 lines
1.4 KiB
TypeScript
34 lines
1.4 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
* Side Public License, v 1.
|
|
*/
|
|
|
|
import expect from '@kbn/expect';
|
|
import { PluginFunctionalProviderContext } from 'test/plugin_functional/services';
|
|
|
|
// eslint-disable-next-line import/no-default-export
|
|
export default function ({ getService }: PluginFunctionalProviderContext) {
|
|
const testSubjects = getService('testSubjects');
|
|
const flyout = getService('flyout');
|
|
|
|
describe('adding children', () => {
|
|
before(async () => {
|
|
await testSubjects.click('embeddablePanelExample');
|
|
});
|
|
|
|
it('Can add a child backed off a saved object', async () => {
|
|
await testSubjects.click('embeddablePanelToggleMenuIcon');
|
|
await testSubjects.click('embeddablePanelAction-ACTION_ADD_PANEL');
|
|
await testSubjects.waitForDeleted('savedObjectFinderLoadingIndicator');
|
|
await testSubjects.click('savedObjectTitleGarbage');
|
|
await testSubjects.moveMouseTo('euiFlyoutCloseButton');
|
|
await flyout.ensureClosed('dashboardAddPanel');
|
|
const tasks = await testSubjects.getVisibleTextAll('todoEmbeddableTask');
|
|
expect(tasks).to.eql(['Goes out on Wednesdays!', 'Take the garbage out']);
|
|
});
|
|
});
|
|
}
|