Skip to content

Commit bc2340e

Browse files
committed
fix data-test-subj and related test
1 parent d14d55d commit bc2340e

File tree

2 files changed

+2
-2
lines changed
  • src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/tabs
  • test/functional/page_objects

2 files changed

+2
-2
lines changed

src/legacy/core_plugins/kibana/public/management/sections/index_patterns/edit_index_pattern/tabs/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function getTabs(
9696
tabs.push({
9797
name: getTitle('indexed', filteredCount, totalCount),
9898
id: TAB_INDEXED_FIELDS,
99-
'data-test-subj': 'tab-indexFields',
99+
'data-test-subj': 'tab-indexedFields',
100100
});
101101

102102
if (indexPatternListProvider.areScriptedFieldsEnabled(indexPattern)) {

test/functional/page_objects/settings_page.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export function SettingsPageProvider({ getService, getPageObjects }: FtrProvider
207207
async getFieldsTabCount() {
208208
return retry.try(async () => {
209209
const text = await testSubjects.getVisibleText('tab-indexedFields');
210-
return text.replace(/\((.*)\)/, '$1');
210+
return text.split(' ')[1].replace(/\((.*)\)/, '$1');
211211
});
212212
}
213213

0 commit comments

Comments
 (0)