Skip to content

Commit

Permalink
[ML] add data-test-subj for search box
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Jun 17, 2020
1 parent 5a097ab commit 50fb091
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export const AddToDashboardControl: FC<AddToDashboardControlProps> = ({
},
box: {
incremental: true,
'data-test-subj': 'mlDashboardsSearchBox',
},
};
}, []);
Expand Down
4 changes: 1 addition & 3 deletions x-pack/test/functional/services/ml/anomaly_explorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { FtrProviderContext } from '../../ftr_provider_context';

export function MachineLearningAnomalyExplorerProvider({ getService }: FtrProviderContext) {
const testSubjects = getService('testSubjects');
const find = getService('find');

return {
async assertAnomalyExplorerEmptyListMessageExists() {
Expand Down Expand Up @@ -91,8 +90,7 @@ export function MachineLearningAnomalyExplorerProvider({ getService }: FtrProvid

async filterWithSearchString(filter: string) {
await this.waitForDashboardsToLoad();
const tableListContainer = await testSubjects.find('mlDashboardSelectionContainer');
const searchBarInput = await tableListContainer.findByClassName('euiFieldSearch');
const searchBarInput = await testSubjects.find('mlDashboardsSearchBox');
await searchBarInput.clearValueWithKeyboard();
await searchBarInput.type(filter);
},
Expand Down

0 comments on commit 50fb091

Please sign in to comment.