[ObsUx][Infra] Fix failing test (#206637)

Closes https://github.com/elastic/kibana/issues/192891

### Summary

The element wasn't found in the DOM because was reloaded, found the
error `StaleElementReferenceError: stale element reference: stale
element not found in the current frame`, the test has been fixed adding
a wait for the page to completely load.

Going to run flaky test runner
This commit is contained in:
Miriam 2025-01-15 09:03:28 +00:00 committed by GitHub
parent 098e8cb518
commit 93b7c950ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -477,8 +477,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
});
});
// FLAKY: https://github.com/elastic/kibana/issues/192891
describe.skip('Processes Tab', () => {
describe('Processes Tab', () => {
before(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/infra/metrics_hosts_processes');
await esArchiver.load('x-pack/test/functional/es_archives/infra/metrics_and_logs');
@ -501,6 +500,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
});
it('should render processes tab and with Total Value summary', async () => {
await pageObjects.header.waitUntilLoadingHasFinished();
const processesTotalValue =
await pageObjects.assetDetails.getProcessesTabContentTotalValue();
await retry.tryForTime(5000, async () => {