Infra flaky test fixes (#160503)

Closes #157711 and closes #157740
## Summary

This PR fixes the mentioned flaky tests together with the fix done in
https://github.com/elastic/kibana/pull/160407
This commit is contained in:
jennypavlova 2023-06-27 11:28:25 +02:00 committed by GitHub
parent 7fb8f6be8d
commit 7e7cf0fb96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -192,8 +192,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
});
});
// FLAKY: https://github.com/elastic/kibana/issues/157711
describe.skip('alerts flyouts', () => {
describe('alerts flyouts', () => {
before(async () => {
await esArchiver.load('x-pack/test/functional/es_archives/infra/metrics_and_logs');
await pageObjects.common.navigateToApp('infraOps');
@ -219,12 +218,13 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await pageObjects.infraHome.clickAlertsAndRules();
await pageObjects.infraHome.ensurePopoverOpened();
await pageObjects.infraHome.clickAlertsAndRules();
await pageObjects.infraHome.ensurePopoverClosed();
await retry.try(async () => {
await pageObjects.infraHome.ensurePopoverClosed();
});
});
});
// FLAKY: https://github.com/elastic/kibana/issues/157740
describe.skip('Saved Views', () => {
describe('Saved Views', () => {
before(async () => {
esArchiver.load('x-pack/test/functional/es_archives/infra/metrics_and_logs');
await pageObjects.common.navigateToApp('infraOps');