Skip to content

Commit cb75149

Browse files
committed
🐛 Fix flacky test with tab workaround for race condition
1 parent 839817c commit cb75149

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

x-pack/test/functional/page_objects/lens_page.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,9 @@ export function LensPageProvider({ getService, getPageObjects }: FtrProviderCont
127127
await testSubjects.click('lns-newBucket-add');
128128
const queryInput = await testSubjects.find('indexPattern-filters-queryStringInput');
129129
await queryInput.type(queryString);
130-
await PageObjects.common.pressEnterKey();
130+
// Press Tab 2 twice instead of Enter to avoid race condition with the dropdown
131+
await PageObjects.common.pressTabKey();
132+
await PageObjects.common.pressTabKey();
131133
await PageObjects.common.pressEnterKey();
132134
await PageObjects.common.sleep(1000); // give time for debounced components to rerender
133135
},

0 commit comments

Comments
 (0)