Skip to content

Commit 47c9a4e

Browse files
committed
[ML] Functional tests - stabilize Discover custom URL test
1 parent 755950a commit 47c9a4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

x-pack/test/functional/services/ml/custom_urls.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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();

0 commit comments

Comments
 (0)