Commit 0e952d5e by Hugo Häggmark Committed by GitHub

Refactor: Navigates directly to add data source page instead (#20959)

parent fc00d833
......@@ -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',
},
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment