-
+
+
);
};
diff --git a/x-pack/test/accessibility/apps/lens.ts b/x-pack/test/accessibility/apps/lens.ts
index 854ff1b349e49..b680dea82d89a 100644
--- a/x-pack/test/accessibility/apps/lens.ts
+++ b/x-pack/test/accessibility/apps/lens.ts
@@ -138,7 +138,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
field: 'bytes',
});
- await testSubjects.click('lnsSuggestion-barChart > lnsSuggestion');
+ await testSubjects.click('lnsSuggestion-barChart');
await a11y.testAppSnapshot();
});
diff --git a/x-pack/test/functional/apps/lens/group1/smokescreen.ts b/x-pack/test/functional/apps/lens/group1/smokescreen.ts
index 207e546f10d54..2e03f5f5a7fa3 100644
--- a/x-pack/test/functional/apps/lens/group1/smokescreen.ts
+++ b/x-pack/test/functional/apps/lens/group1/smokescreen.ts
@@ -315,7 +315,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
await PageObjects.lens.save('twolayerchart');
- await testSubjects.click('lnsSuggestion-asDonut > lnsSuggestion');
+ await testSubjects.click('lnsSuggestion-asDonut');
expect(await PageObjects.lens.getLayerCount()).to.eql(1);
expect(await PageObjects.lens.getDimensionTriggerText('lnsPie_sliceByDimensionPanel')).to.eql(
diff --git a/x-pack/test/functional/apps/maps/group4/lens/choropleth_chart.ts b/x-pack/test/functional/apps/maps/group4/lens/choropleth_chart.ts
index b026dd7444748..c228599c344f9 100644
--- a/x-pack/test/functional/apps/maps/group4/lens/choropleth_chart.ts
+++ b/x-pack/test/functional/apps/maps/group4/lens/choropleth_chart.ts
@@ -52,7 +52,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
// add filter to force data fetch to set activeData
await filterBar.addFilter('bytes', 'is between', '200', '10000');
- await testSubjects.click('lnsSuggestion-worldCountriesByCountOfRecords > lnsSuggestion');
+ await testSubjects.click('lnsSuggestion-worldCountriesByCountOfRecords');
await PageObjects.maps.openLegend();
await PageObjects.maps.waitForLayersToLoad();