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

This commit is contained in:
Hugo Häggmark 2019-12-09 02:20:13 -08:00 committed by GitHub
parent fc00d8336f
commit 0e952d5e5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View File

@ -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()}`;

View File

@ -4,6 +4,5 @@ export const DataSources = pageFactory({
url: '/datasources',
selectors: {
dataSources: (dataSourceName: string) => `Data source list item ${dataSourceName}`,
addDataSource: () => '.page-action-bar > .btn',
},
});