Skip to content

Commit

Permalink
[8.16] [ObsUx][Infra] Processes Tab: Fix failling test (#197823) (#19…
Browse files Browse the repository at this point in the history
…7843)

# Backport

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

<!--- Backport version: 9.4.3 -->

### 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","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:obs-ux-infra_services","v8.16.0","backport:version"],"title":"[ObsUx][Infra]
Processes Tab: Fix failling
test","number":197823,"url":"https://github.com/elastic/kibana/pull/197823","mergeCommit":{"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":["8.16"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197823","number":197823,"mergeCommit":{"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"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: jennypavlova <[email protected]>
  • Loading branch information
kibanamachine and jennypavlova authored Oct 25, 2024
1 parent 043f059 commit e1290b0
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 e1290b0

Please sign in to comment.