mirror of
https://github.com/grafana/grafana.git
synced 2025-01-26 08:16:59 -06:00
Refactor: Navigates directly to add data source page instead (#20959)
This commit is contained in:
parent
fc00d8336f
commit
0e952d5e5f
@ -3,9 +3,7 @@ import { e2e } from '../index';
|
||||
export const addDataSource = (pluginName?: string): string => {
|
||||
pluginName = pluginName || 'TestData DB';
|
||||
|
||||
e2e.pages.DataSources.visit();
|
||||
e2e.pages.DataSources.addDataSource().click();
|
||||
|
||||
e2e.pages.AddDataSource.visit();
|
||||
e2e.pages.AddDataSource.dataSourcePlugins(pluginName).click();
|
||||
|
||||
const dataSourceName = `e2e-${new Date().getTime()}`;
|
||||
|
@ -4,6 +4,5 @@ export const DataSources = pageFactory({
|
||||
url: '/datasources',
|
||||
selectors: {
|
||||
dataSources: (dataSourceName: string) => `Data source list item ${dataSourceName}`,
|
||||
addDataSource: () => '.page-action-bar > .btn',
|
||||
},
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user