From 50cc8b8c1f204ca1bfa0e35327f04107a404c0e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20St=C3=BCrmer?= Date: Tue, 12 Dec 2023 12:57:11 +0100 Subject: [PATCH] [Logs Explorer] Disable the too-slow url check in functional test (#173092) --- .../page_objects/observability_log_explorer.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/x-pack/test/functional/page_objects/observability_log_explorer.ts b/x-pack/test/functional/page_objects/observability_log_explorer.ts index a992aeefd0541..a61682e62a8cb 100644 --- a/x-pack/test/functional/page_objects/observability_log_explorer.ts +++ b/x-pack/test/functional/page_objects/observability_log_explorer.ts @@ -226,7 +226,12 @@ export function ObservabilityLogExplorerPageObject({ return await PageObjects.common.navigateToUrlWithBrowserHistory( 'observabilityLogExplorer', '/', - queryStringParams + queryStringParams, + { + // the check sometimes is too slow for the page so it misses the point + // in time before the app rewrites the URL + ensureCurrentUrl: false, + } ); }, @@ -246,7 +251,12 @@ export function ObservabilityLogExplorerPageObject({ return await PageObjects.common.navigateToUrlWithBrowserHistory( 'observabilityLogExplorer', '/', - queryStringParams + queryStringParams, + { + // the check sometimes is too slow for the page so it misses the point + // in time before the app rewrites the URL + ensureCurrentUrl: false, + } ); },