diff --git a/test/support/page_objects/common.js b/test/support/page_objects/common.js index e3a7d981439a4..87c565cfe081c 100644 --- a/test/support/page_objects/common.js +++ b/test/support/page_objects/common.js @@ -68,7 +68,7 @@ export default class Common { } } - waitUntilUrlFound(path) { + waitUntilUrlIncludes(path) { return this.tryForTime(defaultFindTimeout, async () => { const url = await this.remote.getCurrentUrl(); if (!url.includes(path)) throw new Error('Url not found'); diff --git a/test/support/page_objects/discover_page.js b/test/support/page_objects/discover_page.js index 2af748654e3cb..ba12f8ea54a84 100644 --- a/test/support/page_objects/discover_page.js +++ b/test/support/page_objects/discover_page.js @@ -296,7 +296,7 @@ export default class DiscoverPage { await PageObjects.common.clickTestSubject('showFilterActions'); await PageObjects.common.clickTestSubject('removeAllFilters'); await PageObjects.header.waitUntilLoadingHasFinished(); - await PageObjects.common.waitUntilUrlFound('filters:!()'); + await PageObjects.common.waitUntilUrlIncludes('filters:!()'); }