Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions x-pack/test/functional/page_objects/lens_page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -574,11 +574,13 @@ export function LensPageProvider({ getService, getPageObjects }: FtrProviderCont
const lastIndex = (
await find.allByCssSelector('[data-test-subj^="indexPattern-dimension-field"]')
).length;
await testSubjects.click('indexPattern-terms-add-field');
// count the number of defined terms
const target = await testSubjects.find(`indexPattern-dimension-field-${lastIndex}`);
await comboBox.openOptionsList(target);
await comboBox.setElement(target, field);
await retry.try(async () => {
await testSubjects.click('indexPattern-terms-add-field');
// count the number of defined terms
const target = await testSubjects.find(`indexPattern-dimension-field-${lastIndex}`, 1000);
await comboBox.openOptionsList(target);
await comboBox.setElement(target, field);
});
},

async checkTermsAreNotAvailableToAgg(fields: string[]) {
Expand Down