From e204a18ca6e8a84441e474f825b582593d033282 Mon Sep 17 00:00:00 2001 From: jennypavlova Date: Mon, 4 Nov 2024 17:06:32 +0100 Subject: [PATCH] [8.x] [ObsUx][Infra] Processes Tab: Fix failling test (#197823) (#198764) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes [#198279](https://github.com/elastic/kibana/issues/198279) Closes [#192891](https://github.com/elastic/kibana/issues/192891) # Backport This will backport the following commits from `main` to `8.x`: - [ObsUx][Infra] Processes Tab: Fix failling test (#197823) (b8dabb5b) ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) --- x-pack/test/functional/apps/infra/node_details.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/x-pack/test/functional/apps/infra/node_details.ts b/x-pack/test/functional/apps/infra/node_details.ts index afacc8d63c3e3..0f1de8cb9c8bf 100644 --- a/x-pack/test/functional/apps/infra/node_details.ts +++ b/x-pack/test/functional/apps/infra/node_details.ts @@ -404,8 +404,9 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { await pageObjects.assetDetails.clickProcessesTab(); const processesTotalValue = await pageObjects.assetDetails.getProcessesTabContentTotalValue(); - const processValue = await processesTotalValue.getVisibleText(); - expect(processValue).to.eql('N/A'); + await retry.tryForTime(5000, async () => { + expect(await processesTotalValue.getVisibleText()).to.eql('N/A'); + }); }); }); }); @@ -510,8 +511,9 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { it('should render processes tab and with Total Value summary', async () => { const processesTotalValue = await pageObjects.assetDetails.getProcessesTabContentTotalValue(); - const processValue = await processesTotalValue.getVisibleText(); - expect(processValue).to.eql('313'); + await retry.tryForTime(5000, async () => { + expect(await processesTotalValue.getVisibleText()).to.eql('313'); + }); }); it('should expand processes table row', async () => {