Skip to content

Commit

Permalink
[8.x] [ObsUx][Infra] Processes Tab: Fix failling test (#197823) (#198764
Browse files Browse the repository at this point in the history
)

Closes [#198279](#198279)
Closes [#192891](#192891)
# Backport

This will backport the following commits from `main` to `8.x`:
 - [ObsUx][Infra] Processes Tab: Fix failling test (#197823) (b8dabb5)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"jennypavlova","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-25T14:48:00Z","message":"[ObsUx][Infra]
Processes Tab: Fix failling test (#197823)\n\nCloses #192891 \r\n\r\n##
Summary\r\n\r\nThis PR fixes the processes tab failing test.\r\nI
checked locally and it passed.\r\n\r\n✅ Flaky test runner
(x50):\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7264","sha":"b8dabb5b81087f53e17f715ea19a17d50cc64167"},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[]}]
BACKPORT-->
  • Loading branch information
jennypavlova authored Nov 4, 2024
1 parent e7f9bb9 commit e204a18
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions x-pack/test/functional/apps/infra/node_details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
});
});
Expand Down Expand Up @@ -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 () => {
Expand Down

0 comments on commit e204a18

Please sign in to comment.