diff --git a/x-pack/test/functional/apps/infra/hosts_view.ts b/x-pack/test/functional/apps/infra/hosts_view.ts index f06ac57e893cb..f9932421690e0 100644 --- a/x-pack/test/functional/apps/infra/hosts_view.ts +++ b/x-pack/test/functional/apps/infra/hosts_view.ts @@ -424,7 +424,9 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => { }); it('should have an option to open the chart in lens', async () => { - await pageObjects.infraHostsView.clickAndValidateMetriChartActionOptions(); + await retry.try(async () => { + await pageObjects.infraHostsView.clickAndValidateMetricChartActionOptions(); + }); }); }); diff --git a/x-pack/test/functional/page_objects/infra_hosts_view.ts b/x-pack/test/functional/page_objects/infra_hosts_view.ts index 3d37fc4da913f..3fbb3d361d879 100644 --- a/x-pack/test/functional/page_objects/infra_hosts_view.ts +++ b/x-pack/test/functional/page_objects/infra_hosts_view.ts @@ -108,7 +108,7 @@ export function InfraHostsViewProvider({ getService }: FtrProviderContext) { return container.findAllByCssSelector('[data-test-subj*="hostsView-metricChart-"]'); }, - async clickAndValidateMetriChartActionOptions() { + async clickAndValidateMetricChartActionOptions() { const element = await testSubjects.find('hostsView-metricChart-tx'); await element.moveMouseTo(); const button = await element.findByTestSubject('embeddablePanelToggleMenuIcon');