From 6074722fbf3f003ee920c285ed5ac6e714597994 Mon Sep 17 00:00:00 2001 From: Muhammad Ibragimov Date: Fri, 22 Jul 2022 14:49:12 +0500 Subject: [PATCH] Wait until loading finishes --- test/functional/apps/console/_xjson.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/apps/console/_xjson.ts b/test/functional/apps/console/_xjson.ts index 31a6520ea23ef..386cda8ef32ea 100644 --- a/test/functional/apps/console/_xjson.ts +++ b/test/functional/apps/console/_xjson.ts @@ -33,6 +33,8 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => { await PageObjects.console.enterRequest( '\nPOST test/_doc/1 \n{\n "foo": """look "escaped" quotes"""' ); + await PageObjects.console.clickPlay(); + await PageObjects.header.waitUntilLoadingHasFinished(); expect(await PageObjects.console.hasErrorMarker()).to.be(false); }); });