Skip to content

Commit

Permalink
[ObsUx][Infra] Processes Tab: Fix failling test (elastic#197823)
Browse files Browse the repository at this point in the history
Closes elastic#192891 

## Summary

This PR fixes the processes tab failing test.
I checked locally and it passed.

✅ Flaky test runner (x50):
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7264
  • Loading branch information
jennypavlova authored Oct 25, 2024
1 parent 8f0f0a4 commit b8dabb5
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 b8dabb5

Please sign in to comment.