File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
x-pack/test/functional/services/ml Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export function MachineLearningCustomUrlsProvider({
1616 getService,
1717 getPageObjects,
1818} : FtrProviderContext ) {
19+ const browser = getService ( 'browser' ) ;
1920 const testSubjects = getService ( 'testSubjects' ) ;
2021 const retry = getService ( 'retry' ) ;
2122 const comboBox = getService ( 'comboBox' ) ;
@@ -169,6 +170,9 @@ export function MachineLearningCustomUrlsProvider({
169170
170171 async assertDiscoverCustomUrlAction ( expectedHitCountFormatted : string ) {
171172 await PageObjects . discover . waitForDiscoverAppOnScreen ( ) ;
173+ // Make sure all existing popovers are closed
174+ await browser . pressKeys ( browser . keys . ESCAPE ) ;
175+
172176 // During cloud tests, the small browser width might cause hit count to be invisible
173177 // so temporarily collapsing the sidebar ensures the count shows
174178 await PageObjects . discover . closeSidebar ( ) ;
You can’t perform that action at this time.
0 commit comments